Android Studio 4.0 installer does not install SDK - android

I hope that someone can help me with this. I'm working with UE4 and in order to compile for Android I need to install Android Studio v4.0
When I install it, it says that I don't have the SDK (it should be downloaded by the same installer as I read)
Step 1
Then when I click on Next, it says that I do have the SDK (which is wrong, the folder doesn't even exists as you can see here)
Step 2
Finally it throws an error and the Studio keeps installed but not the SDK.
Step 3
When I run Studio SDK Manager option in the lower right menu does nothing when I click on it.
So I tried everything. Installing an SDK manually. Creating the folder. Doing a full uninstall, a deep clean of all "Android" related entries in the registry. Deleting manually all the folders that Android Studio Uninstaller left in app data, local, roaming, and nothing.
I don't want to reinstall widows just to try if that mess of installer decides to do a proper clean installation without errors. Any suggestion? I would appreciate it so much!
Regards,
Roman
What do I expect? Just to install it with the SDK and have it working. Just that.

Related

Android Studio SDK is missing

I had a USB connection problem when I debug and updated BIOS then, the laptop had problem with drive so, I needed to recover it. So, I recovered it with removing all the applications and just kept my personal files.
And I downloaded and installed Android Studio again, and SDK missing problem occurred like below:
I can't see 'SDK' when I install Android Studio from here. So, I can't select any.
I tried with SDK Manager. I can't install any versions with "Your Android SDK is missing, out of date, or corupted." error.
I tried Update. But nothing changed. (Updated to 3.3.1, but failed to Sync SDKs ERROR.)
Some people on Stack-overflow suggested to download SDK separately, but their links just show Android Studio installer, which I already installed. Maybe the links were so old.
"C:\Users\XXX\AppData\Local\Android\Sdk" does not exists.
I uninstalled Android Studio include User setting and reinstalled it.(There is no such thing that I can select previous version kind of thing.) But the result is the same.
TL;DR This is sometimes caused by Windows registry settings retained with the current AndroidStudio project. To fix, just startup Android Studio and then close the current project (File -> Close Project). If this was the problem, AS will now go into a long update and restart cycle to repair itself, but will end with success.
I also recommend that you then change AS settings to not open the last project on Startup (Settings -> System Settings -> Reopen projects on startup)
Windows 10, Android Studio v3.6 and v4.0.
This one drove me nuts! I had the same problem - my SDK seemed to be corrupt so I did a full Uninstall (v3.6) and Install (4.0) of Android Studio and when Android Studio started up I got the same message Android SDK is missing.
The SDK Manager in Tools wasn't working.
I went to the link and there was nothing to download the SDK. So I installed the file which looked a bit like the SDK, commandlinetools-win-6514223_latest.zip, unzipped, and then tried to use the missing SDK dialog to include it in AS, and no joy.
BUT - I noticed that after an uninstall and fresh install Android Studio still came up with the last project I was working on so I guessed it must be something in the windows registry (rather than AS settings). I closed that project and AS suddenly popped up a dialog to install the SDK!
After a big download and install, Android Studio returned with the SDK (and SDK manager) all functioning!
So - just startup Android Studio and then close the current project (File -> Close Project)!
How I did a complete re-install.
Uncheck the "Keep Settings" (or similar) option in the Uninstall dialog, but export your settings first (File -> Export Settings). I found it easy to: Export settings; Complete Uninstall; Download and Install; Import Settings;. But, or course, there were several massive downloads. Still don't know why the last open file came up after the fresh install. It's probably in the registry, so, if there are still problems then you'll have to clear AS from the registry as well. Which sounds painful.
If android sdk is deleted, go to :
SDK manager -> edit -> next ..
I solved this problem with connecting android-sdk folder in C drive.
I reinstalled my OS. But hopefully, I kept my personal folders. So, I could find that folder.
However, If you don't have SDK folder, you may need to install SDK by yourself.

Android Studio Not Including SDK

I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

Uninstalling Android ADT

This seems like a trivial task, but I can't find an option to cleanly de-install the ADT from my Eclipse installation.
Of course, I could just delete the folder of the SDK, but this just throws errors when starting up Eclipse the next time. The reason I'm asking is because my old ADT keeps throwing a wierd error (Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found) and I need a complete, fresh re-install.
Important:
under
Help -> about eclipse sdk -> installation details
the uninstall button for all android plugins is greyed out
The only way to remove the ADT plugin from Eclipse is to go to Help > About Eclipse/About ADT > Installation Details.
Select a plug-in you want to uninstall, then click Uninstall... button at the bottom.
If you cannot remove ADT from this location, then your best option is probably to start fresh with a clean Eclipse install.
I found a solution by myself after doing some research:
Go to Eclipse home folder.
Search for 'android' => In Windows 7 you can use search bar.
Delete all the file related to android, which is shown in the results.
Restart Eclipse.
Install the ADT plugin again and Restart plugin.
Now everything works fine.
I had the issue where after updating the SDK it would only update to version 20 and kept telling me that ANDROID 4.1 (API16) was available and only part of ANDROID 4.2 (API17) was available and there was no update to version 21.
After restarting several times and digging I found (was not obvious to me) going to the SDK Manager and going to FILE -> RELOAD solved the problem. Immediately the other uninstalled parts of API17 were there and I was able to update the SDK. Once updated to 4.2 then I could re-update to version 21 and voila.
Good luck!
David
If running on windows vista or later,
remember to run eclipse under a user with proper file permissions.
try to use the 'Run as Administrator' option.
i got the same problem after clicking update plugins,
i tried all the suggestions above and failed , the only thing that worked for my is reinstalling android studio..

Android ADT Plugin doesn't show up in Eclipse

I'm using Windows 7 and installed the 64 bit version of Eclipse 3.5.2. I then installed the Android ADT plugin, but when I try to configure it in the Windows > Preferences dialog, the Android Plugin doesn't show up in the left pane. Instead I see DDMS. This prevents me from specifying the location of the Android SDK (unless there is another way) to give me the appropriate templates and such.
Someone posted a fix to this that includes setting the permissions of Eclipse, but that didn't work for me. I tried installing the Android Plugin from both online installation (thru the URL install) and the offline Archive method.
If you're running Windows Vista or 7, make sure you right-click Eclipse and RUN AS ADMINISTRATOR. I literally spent six hours figuring this out, and this was what fixed it.
Dear people from the future:
I had roughly the same problem in linux, except that i didn't see anything at all but vanilla eclipse after installing. by combining both previous answers i got it to work:
start eclipse with sudo eclipse -clean, install the plugins and restart eclipse. the plugins showed up including the welcome screen that's supposed to be there.
after that it should work when running as regular user as well.
works for both the android sdk and the gwt sdk. (and probably other eclipse plugins)
Remove the plugin, then restart as follows:
eclipse -clean
Now try reinstalling the ADT from the online installation
For users having similar problem and not luck with other solutions:
I have windows XP but had same problem. I realized that I had JDK5/bin folder in my PATH environment variable (though my JDK_HOME was pointing to JDK6), as soon as I modified the PATH to replace bin of JDK5 with JDK6, the Android buttons on eclipse (after restart with -clean) along with Android option in Preferences & New Project showed up. (Weird eh!)
Also, consider to install the bundle android installation having eclipse with pre-configured Android SDK if a new eclipse installation doesn't matter to you
http://developer.android.com/sdk/installing/bundle.html
The above answers do not confront the heart of the problem. There is a feature in Windows 7 that prevents downloaded files from direct access of local files. All of the state is perfectly maintained in the Eclipse workspace instance. The problem is easily resolved by doing the following:
Find the "Eclipse" executable
Right-click on it.
Click "Properties".
Select the "General" tab.
Look for -> Security: "This file came from another computer and might be blocked..."
Click Unblock.
This is a much better solution than uninstalling and reinstalling the ADT or Eclipse which can be a pain.

Categories

Resources