I just downloaded and installed Android Studio. For whatever reason, it won't open. I've tried running it as administrator, but that doesn't seem to work either. I've also tried uninstalling and reinstalling, but I'm still having this same problem.
On windows open task manager and check if android studio is there.
End the task and start the app again it works like a charm
Figured it out! I'm sure someone will run into this in the future, so here goes.
Even though it found my JDK during installation, it wasn't able to find it when I was trying to open it, for some reason. Simple fix. Add a JDK_HOME environment variable to your system variables. It should contain the path to your JDK's ROOT directory. i.e. c:\Program Files\Java\jdk1.7.0_21\
For me this technique works
Hover on icon, then hover on app
Press right click and select maximize
This link http://tools.android.com/knownissues lists another cause for the launcher malfunctioning.
I quote the link here:
"
On some systems the launcher script does not find where Java is installed. Workaround is to set a variable indicating the location of Java [b/55281]:
Open Start menu > computer > System Properties > Advanced System Properties
In the Advanced tab > Environment Variables, add new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.
Another issue we found is that the launcher script uses an option that is unknown to Java on some system [b/55267]
Open the installation folder of Android Studio (e.g. C:\Programs Files\Android\android-studio, or C:\Users\\AppData\Local\Android\android-studio) and find the "bin" directory in there.
Open a "cmd.exe" (command prompt), cd to the android-studio\bin folder and run "studio.bat". You will most likely see an error: for example b/55267 is about the option -XX:+UseCodeCacheFlushing not being recognized. Report the error, remove the line from the studio.exe.vmoptions or studio64.exe.vmoptions and it should now work.
Apologies for this weak launcher."
OS: Windows 10 64bit
Need to delete below folder and try launch Android Studio again.
C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio4.1
Source: developer android
I am Installing Android Studio 4.1.1 in my Windows 10 and trying to open as normal as well run as administration both ways but did not open as regular.
When I saw in Task Manager then it was run as a background process then simply I was Endtask it in that background process and re-open. It works for me...!!!
Just add a JDK_HOME variable with the path of your JDK as value and start the IDE again. That's the only thing to do, hope this closes the other questions.
Windows 7 user:
I tried all the above ideas ( adding JDK_HOME, JAVA_HOME environment variables), but the final trick was to run as admin.
If that fails, try "where java" in cmd.exe.
If it lists c:\system32\java.exe first, then rename the file.
(i) Open the folder where android-studio is installed. (C:\Program Files (x86)\Android\android-studio)
(ii)- Right click on the android-studio folder and scroll to properties.
(iii)While in Properties window, click on Security.
(iv)Click the Edit Button
(v) Select User/Admin...or others
(vi)Check "Allow" in front of "Full control"
(vii) Either Apply or Press OK
....At this point you have to wait for it to install....Enjoy!!!
And I use Window 8...!!! So same thing applies to Window 7...wonder why the security on it...
I am on Windows 8 64 bit machine.
I already had JDK installed and jdk.1.7.0 folder was present in C:\Program Files\Java. But path for that folder didn't work. You must have jdk.1.7.xxx folder present on your machine and give that folder as JDK_HOME in Environment variable.
You can take latest JDK version from here
Make sure to choose Windows x64 version. Install JDK and then set your path. For those who are not sure how to set path in Windows 8, I have got following screenshots.
Go to bottom right corner. Click on Settings. Click on PC Info.
Click on Advanced System Setting link on left side.
Click on Environment Variables button. A Winodw will open with 2 listboxes. Click on New button below System variables listbox. New Window will pop up. Provide name as JDK_HOME and path as your path like "C:\Program Files\Java\jdk1.7.0_55". No need to take bin folder into the path.
None of the above mentioned solution worked for me. And there is no studio.bat file in bin directory.
So, I downloaded a 32-bit android-studio for my system (as it is 32bit) from here (official website) and it worked!
PS: The link might be broken in the future, just google for the 32 bit android studio.
(After wasting half a day on it, finally, I got it running)
I am running it on Windows 8.1. Also, I had JDK 1.7.0_13.
I tried the following:
Open Start menu > Computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables
Add new system variable JAVA_HOME that points to JDK folder, C:\Program Files\Java\jdk1.7.0_13\
Just to be on the safer side, also add new system variable JDK_HOME that points to JDK folder, for example, C:\Program Files\Java\jdk1.7.0_13\
Append new PATH in system variable that points to JDK folder, C:\Program Files\Java\jdk1.7.0_13\
But still it didn't work. Then it struck me that might be, my Java version is old. I downloaded the latest version from here.
I uninstalled JDK 1.7.0_13 and installed version 8 i.e. JDK 1.8.0_131.
Now do all the above steps but, replace the path with C:\Program Files\Java\jdk1.8.0_131\ OR whichever your latest version is.
Success!! Now it works.
In my case, I have existing projects and during trying the opening Android Studio, it just showed me the name of the project.
The thing I did was changing the name of that project and forcing Android Studio to ask me to choose which project at the beginning.
In my case, it was a windows related bug. Android Studio was configured properly and working like a charm, but it was opening in the second disconnected windows.
My solution was to press [Win] + Tab and then choose Android Studio on half of the screen so that it readjusts. Finally, I maximized it and it opened it in the correct screen.
I was able to resolve the same issue by refer to the solution provided in Android Developer Portal,
Studio doesn't start after upgrade
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin. As a workaround, try deleting (or renaming, for backup purposes) the directory below, depending on the Android Studio version and operating system, and start Android Studio again. This will reset Android Studio to its default state, with all third-party plugins removed.
For Android Studio 4.1 and later:
Windows: %APPDATA%\Google\AndroidStudio Example: C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio4.1
macOS: ~/Library/Application Support/Google/AndroidStudio Example: ~/Library/Application Support/Google/AndroidStudio4.1
Linux: ~/.config/Google/AndroidStudio and ~/.local/share/Google/AndroidStudio Example: ~/.config/Google/AndroidStudio4.1 and ~/.local/share/Google/AndroidStudio4.1
In my case executing these in the command line worked after ending the Android Studio process in the task manager:
net stop winnat
net start winnat
Check the log file in :
C:\Users\<yourid>\.AndroidStudio<version>\system\log\idea.log
It might give you some clue.
You don't have to reinstall the Android Studio. In my case, I just deleted "C:\Users\User.AndroidStudio3.5" folder. Then Android Studio is opened. The folder contains just personel settings such as your ide theme darcula etc.
I invalidated cache and restartI deleted the Android studio version folder which was C:\Users\User.AndroidStudio3.5 for me and it worked like charm.
What worked for me was simply rebooting the computer. I'm certain that logging off and logging in will work to so the environment variables can refresh on profile level after installation.
Change the JAVA_HOME system environment variable to C:\Program Files\Android\Android Studio\jre
The direct path to installed java may not work sometimes due to version conflict.
I had Android studio crash on my machine crying about ram. Then it just wouldn't start again. Restarting th ecomputer wouldn't help and I know it has nothing to do with Java.
What ended up fixing it was runing Android Studio trough the Start Menu, or the instalation folder and not the pinned icon ...
Make sure you are not using two Languages (Hindi + English) as input method because android studio install required some time stamp and suppose you are using Hindi language that time and letters will not match at the time of opening
Solution is - select primary Language as English while installing Android Studio.
To change steps
press Windows
search word language
remove Hindi Language
then install Android Studio
I edited studio.bat file.
I added actual jdk placement to SET JDK= line at the beginning of file:
SET JDK=C:\\\Program Files\\\Java\\\jdk1.8.0_151
You must upgrade to 4.0.1 version!
The same problem happened with me. Actually my C drive wasn't full still I wanted to install android studio in D drive. The problem was resolved when I deleted it and again installed android studio.
Install it in C drive (You don't have to do anything for that. Actually, just click next...next.. next.. while installing and you are done.
)
Zuhair Naqi's solution is good, but in my case I don't have the option to maximize. So I found another method, because in my case the Android Studio (Bumblebee) does not open every time the windows was updated.
Select right click on the android studio icon, and open some recent project.
A new window will open with the recent project correctly.
You close the window that you couldn't see, and from there you can open projects normally.
I was able to solve it by going to control panel and uninstalling android studio, then restarting the computer so that any running instances would close. Next I deleted the folder
C:\Program Files\Android\Android Studio
Re-installed everything, and everything was working fine.
Related
I am not able to start the android studio. I have set java path in environment variables and Android studio is also latest version. I have tried to install and run administrator but no help.
Please help me...
Open file Android Studio setup directory/bin/idea.properties
Add disable.android.first.run=true to tail
Restart AS.
Going through the Known issues page(https://developer.android.com/studio/known-issues) found me the fix.
You have to set these additional PATHs
ANDROID_HOME = your SDK directory (android-sdk)
PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
Actual Solution
None of the answers here specify on how to debug the problem, you need to run the bin\studio.bat script in the terminal and inspect the actual Idea exceptions in order to fix the problem.
No need to re-install, delete precious configuration (and plugins, etc.). Just read the error message!
For me, this was the issue:
ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
This means the plugin manager is trying to listen on a port that is not available. Is something listening on that port? For me, it is the stupid "excluded ports" by Windows, so I simply stopped the service:
net stop winnat (as administrator), and confirmed that Android Studio started to work.
Don't delete your configuration files, especially if you don't want to re-configure your settings. Just read the log provided by the bin\studio.bat script.
As of January 2016, the most recent canary needs the property written as as:
-Ddisable.android.first.run=true
otherwise it complains about missing JAVA_HOME. (using windows 10)
Fixed mine android studio by changing the system language, you can set yours to English go to Control Panel->Region under formats tab change the format to English(United states).
I had the same issue, I fixed it by changing the system language. Set your language to English by going to the Control Panel/Region. In the Formats tab change the format to English(United states).
I upgraded my Android Studio from 3.0 to 4.1 and after that AS always stuck on the splash screen. Fortunately, this section of the known-issues works for me https://developer.android.com/studio/known-issues#studio-config-directories
Fixed my Android Studio by changing the system language. You can set yours to English by going to:
Control Panel->Region
Under the formats tab, change the format to:
English(United states)
Thanks #ravi this also worked for me
As of March 2022, I was stuck in the splash screen was due to a plug-in conflict, but the IDE wasn't warning about it.
I received a warning balloon saying that I had the ExcelReader plug-in installed, suggesting me to install the new ExcelEditor plug-in, which is an improved (and paid ¬¬) version (I knew later). So I went and installed it and the IDE suggested restarting.
After restarting, the IDE always got stuck in the splash screen every single time I tried to launch it.
It wasn't until an hour later and so many launch attempts that, miraculously, the IDE launched and a dialog showed up warning about both plug-ins being not compatible so I had to disable one of them. It was a shame that it didn't warn me before. So I chose which one to disable on the dialog and it worked again.
Therefore, I suppose that if this were to happen again, it could be solved by editing the file /home/$USER/.config/Google/AndroidStudio2021.1/disabled_plugins.txt and adding the plug-in to the file manually.
In my case it was "com.chesterccw.excelreader" what I should have added. After that, of course, I uninstalled one of the plug-ins.
Studio doesn't start after upgrade
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin. As a workaround, try deleting (or renaming, for backup purposes) the directory below, depending on the Android Studio version and operating system, and start Android Studio again. This will reset Android Studio to its default state, with all third-party plugins removed.
For Android Studio 4.1 and later:
Windows: %APPDATA%\Google\AndroidStudio<version>
Example: C:\Users\your_user_name\AppData\Roaming\Google\AndroidStudio4.1
macOS: ~/Library/Application Support/Google/AndroidStudio<version>
Example: ~/Library/Application Support/Google/AndroidStudio4.1
Linux: ~/.config/Google/AndroidStudio<version> and ~/.local/share/Google/AndroidStudio<version>
Example: ~/.config/Google/AndroidStudio4.1 and ~/.local/share/Google/AndroidStudio4.1
For Android Studio 4.0 and earlier:
Windows: %HOMEPATH%\.AndroidStudio<version>\config
Example: C:\Users\your_user_name\.AndroidStudio3.6\config
macOS: ~/Library/Preferences/AndroidStudio<version>
Example: ~/Library/Preferences/AndroidStudio3.6
Linux: ~/.AndroidStudio<version>/config
Example: ~/.AndroidStudio3.6/config
Note that the configuration directory for Canary and Beta releases of Android Studio is PreviewX.Y instead of X.Y for the . For example, Android Studio 4.1 Canary builds use AndroidStudioPreview4.1, instead of the AndroidStudio4.1 directory that is used for Release Candidates and Stable releases.
https://developer.android.com/studio/known-issues
just add this line disable.android.first.run=true at the bottom of the idea.properties file in the bin directory of the installation folder
I see there a lot of similar topics pertaining to this issue but I did not find a solution for me among those posts. I just installed Android Studio v0.8.14 and it won't let me create a new project because I do not have an SDK path specified. For the life of me I cannot find where that path should be. I see many people have it located in C:/Android or someplace similar, however the only Android files I have are on my desktop in the extracted folder that came in the .zip. All paths inside that folder do not qualify as an appropriate SDK location, according to Android Studio. Am I being completely ridiculous and missing the obvious?
For Mac/OSX the default location is /Users/<username>/Library/Android/sdk.
Android Studio on Windows 8:
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid username)
Install it and restart your Android Studio.
The above steps are similar for win 7 and also same for eclipse.
Update: Windows 10 (similar steps) - pointed out by RBT
This is the sdk path Android Studio installed for me:
"C:\Users\<username>\appdata\local\android\sdk"
I'm running windows 8.1.
You can find the path going into Android Studio -> Configure -> SDK Manager -> On the top left it should say SDK Path.
I don't think it's necessary to install the sdk separately, as the default option for Android Studio is to install the latest sdk too.
I had forgot where the sdk location was installed to so what I did was open Android Studio and selected Settings then used the following submenu
Current 1/1/2017:Tools -> SDK Manager
outdate: Appearance & Behavior -> System Settings -> Android SDK
There the sdk location was listed as Android SDK Location
Download the SDK from here: http://developer.android.com/sdk/ to C:\android-sdk\.
Then when you launch Android Studio again, it will prompt you for the SDK path just point it to: C:\android-sdk\.
Update: new download location, https://developer.android.com/studio/#command-tools
Linux (Ubuntu 18.4)
/home/<USER_NAME>/Android/Sdk
windows (8.1)
C:\Users\<USER_NAME>\AppData\Local\Android\sdk
(AppData folder is hidden, check folder properties first)
macOS (Sierra 10.12.6)
/Users/<USER_NAME>/Library/Android/sdk
macOS (Catalina or Mojave or Sierra):
After installing Android Studio (3.6+ or 2.3.x),
by default
sdk path: "/Users/< username >/Library/Android/sdk"
Remember:
may be
Library folder is hidden.
To make it visible:- Hit Command+shift+. OR
Open Terminal and type "chflags nohidden ~/Library/" then hit return.
windows:
After installing Android Studio,
by default
sdk path: "C:\Users< username >\AppData\Local\Android\sdk"
Remember:
by default
AppData folder is hidden, make it visible first.
Start Android Studio and select Configure --> SDK Manager
Then, check the path of Android SDK
If you can't find the SDK location, you may want to download it. Just scroll down to near end of the download page and select the Android SDK with respect to your OS.
C:\Users\Max\AppData\Local\Android\sdk\
The location I found it in for Windows 8.1. I think the default SDK folder. AppData is a hidden folder, so you will not locate it unless you type it in once you get into your C:\Users\ folder.
For Mac users running:
Open Android Studio
Select Android Studio -> Preferences -> System Settings -> Android
SDK
Your SDK location will be specified on the upper right side of the
screen under [Android SDK Location]
I'm running Android Studio 2.2.3
When i upgraded i just moved my SDK to my user folder C:\Users\Nick\Android-SDK and updated my path in Android Studio. Worked like a charm.
EDIT: (More detail) - My SDK was originally inside C:\Program Files (x86)\Android\android-studio\sdk, I just Cut and Paste the entire \sdk folder into C:\Users\Nick\Android-SDK, then set it inside Android Studio to the new location.
For Ubuntu users running:
Open Android Studio
Select Android Studio -> Settings -> Android SDK or
Android Studio -> Project structure -> SDK location or to open Project structure shortcut is (Ctrl+Alt+Shift+s)
Your SDK location will be specified on the upper right side of the screen under [Android SDK Location]
If your project is open click on Gradle Scripts >local.properties(SDK LOCATION), open it and there is the location of sdk with name
sdk.dir=C\:\\Users\\shiva\\AppData\\Local\\Android\\Sdk
Note don't forget the replace \\ to \ before coping the things(sdk location)
Default path in Windows
%USERPROFILE%\AppData\Local\Android\Sdk\
Linux 2021, after installed follow these steps!
Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences).
In the left panel, click Appearance & Behavior > Android SDK.
You will see the path
C:\Users\username\AppData\Local\Android\sdk
This is the right path, if you looking up for sdkmanager.
Android SDK is in C:\Users\username\AppData\Local\Android\Sdk
(MAC Users) To find sdk Location in Android Arctic Fox:
File >> Project Structure>> SDK Location.
Consider Using windows 7 64bits
C:\Users\Administrador\AppData\Local\Android\sdk
Windows 10 - when upgrading from AS 2.x to 3.01
AS has the SDK directory name changed from .../sdk to .../Sdk
Because I kept my original settings this caused an issue.
Changed back to lowercase and all working!
AndroidStudioFrontScreenI simply double clicked the Android dmg install file that I saved on the hard drive and when the initial screen came up I dragged the icon for Android Studio into the Applications folder, now I know where it is!!! Also when you run it, be sure to right click the Android Studio while on the Dock and select "Options" -> "Keep on Dock". Everything else works.
create a new folder in your android studio parent directory folder. Name it sdk or whatever you want.
Select that folder from the drop down list when asked.
Thats what solves it for me.
I tried the accepted solution but it didn't resolve the issue for me.
I had already installed Android Studio 2-3 years ago, but I uninstalled it at some point. Installing the latest version was giving me an error. I did multiple uninstalls/reinstallations, but the issue persisted.
I found an SDK was available on my machine in %LocalAppData%. I opened the environment variable and deleted all the references of Android like Android Home /Path. I performed the uninstallation of Android Studio and then reinstalled.
This time it worked and installed properly; it is even downloading the other SDK-related files.
If you are working on React native,please make sure you have installed these tools because I was missing and it resolved my issue
React Native doc for installation
I found this a couple of minutes back.
What renders the location unuseful is the fact that it is neither empty nor has the sdk.
One of the conditions needs to be met for the folder.
So, try this:
On Windows, go to Control Panel and search for 'show hidden folders and files'.
You will find a "Folders" option. On the submenu, you will see "Show hidden files and
folders".
[The options look like this.][1]
Refer this image.
[Click the option shown in the picture][2]
Click apply and ok.
Go to the location i.e. some location in appdata, or the location your android sdk was
about to be installed in. The location should be visible now.
Go to it and delete everything inside. (Don't delete the sdk folder, just the contents
inside it )
Go to android sdk manager and select the same location again. The error should vanish.
Happy installation!
In other words, this error only pops up if you had a previous failed installation.
If you're unable to do it still, hit me up at twitter #Vishma Pratim Das and I will be happy to assist you.
Thanks.
[1]: https://i.stack.imgur.com/G6P8S.png
[2]: https://i.stack.imgur.com/PeRUZ.png
I just installed Android Studio and has the same problem.
Banged my head for a few hours and found the solution - it's retarded.
So I installed Android Studio but when it asked me for the config folder, I provided the one from my IntelliJ. Well, turns out that stop the Android Studio setup and I had no SDK. Going to their site the SDK is nowhere to be found. It's not on any of the links from the other answers either.
My solution was to use a different folder for Android Studio. That ran the setup wizard and downloaded the SDK.
Sharing what worked for me in hopes that it helps someone else.
My issue was that my SDK was not installed together with the Android Studio IDE for some reason. How I managed to trigger the SDK installation was by going to File > Settings on Android Studio, then typing "sdk" in the searchbar. If your android sdk location is empty, click on "edit" right next to it and it should immediately prompt installation for your sdk.
Cheers!
For Linux, do not move/put android sdk under /usr/lib/ directory because it will only have read permissions and other libraries cannot be downloaded.
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
check this location in windows
I searched all day but haven't find a solution yet.
Today I installed Android Studio without any problems.
I added the correct path.
JAVA_HOME to C:\Program Files\Java\jdk1.8.0_20
and
JDK_HOME to C:\Program Files\Java\jdk1.8.0_20
But, when I start the program it freezes on the loading screen. (The gray picture with the green android logo and text Android Studio)
It does create a process that I can't close, but after waiting for 20 minutes it's still on that screen.
I tried a clean install, also I tried the 32bit version without any success because it complained about the jvm that I could not fix for some reason.
I also did an update for it, but without success.
I have no idea what else I can try to fix this, but I also don't see myself going back to eclipse.
What worked for me was to disconnect my android phone which was connected to the computer(in the debugging mode).
I went from 1.5 to 2.0 and after updating it wouldn't load (hung at the startup screen). I had to delete the .android folder, the android.15 folder and the .AndroidStudioPreview2.0 folder under user. I also had to rename the SDK folder and after it started up I rename it back to what it was. Which means I had to add the path back to android studio. This was the only way I got it to work.
The same issue. "Run as administrator" helped me.
Another possible solution comes from JLund (from the comments):
I did this from the command line:
adb kill-server
adb start-server
and that unfroze Android Studio at startup for me.
Make sure there is no ANDROID_SDK_HOME, ANDROID_HOME or the like defined as you environment variable. You might need to uninstall any Android SDK previously installed manually after removing those environment variable.
My Android Studio auto loads the last worked-on project.
I cancelled the loading project before the IDE hung.
The Android Studio launcher comes up. Select the "Open an existing..." option.
Windows 10
Java 1.8.0_131
Android Studio 3.2.1
Android Studio kept getting hung up on a white screen before the IDE loaded any buttons. I renamed the project that it was trying to load, restarted Android Studio, and selected another project and it loaded correctly.
I had to revamp all manually installed 'HOME' environments and start it again-
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)
So I'm trying to create an AVD Simulator, and I keep getting the "No system images installed for this target" error when trying to create a 4.2.2 system even though the image is installed (See picture of SDK Manager).
My system is x64, does that make a difference?
After SDK Update I had the same problems with API Level 19 and
in my case restarting eclipse didn't solve it.
For some reason, in the sdk/system-images/android-19 directory, sub-folders with system images (armeabi-v7a and x86) were placed within "default" directory.
I just moved them into android-19 directory (if eclipse is running at the same time, you will have to restart it).
You just need to restart the tools. I have seen this bug before. The appropriate installed images will show up after the restart.
You can also try to refresh within the 'Packages' menu, but the easiest thing, is to restart the tools.
Goto sdk\system-images and open the folder of the current API you are using (eg.android-19 folder in your case).
Now you'll find a folder named 'default', open it and you'll see the folder named 'armeabi-v7a' or which ever system image you've installed.
Now move the folder 'armeabi-v7a' to the directory sdk\system-images...i.e simply out of the 'default' folder.
That's it.
I had the same problem and this method worked for me. :D
I restart eclipse.it worked out for me,issue is resolved.
I just had this same issue. My problem was solved by killing eclipse (Command + Q) because I'm a Mac user. So, if you're under other operative system be sure to kill the Eclipse's process and relaunch it.
Lots of potentially useful answers here, but none of them were worked for me.
On my Mac, I have both Android Studio and Visual Studio installed. One would hope that they would automatically look for an Android SDK in the same place, but no, not necessarily.
In Android Studio, go to Tools -> Android -> SDK Manager. In the window that pops up, make a note of the Android SDK Location. It should be something like
/Users/[user]/Library/Android/sdk
Next, in Visual Studio, go to Tools -> SDK Manager. In the window that pops up, the path that should be selected on the left is Projects -> SDK Location -> Android. On the right, click the Locations tab. For me, the Android SDK Location path was set to something like
/Users/[user]/Library/Developer/Xamarin/android-sdk-macosx
I changed this to the path that Android Studio was using, and that fixed the problem for me.
Very simple. I restarted Eclipse, reloaded my project and when creating a new emulator, the problem is gone
Found this thread when I did a search on Google for the same error.
So I just wanted to add that if anyone comes across this thread but you are using Android Studio. You only have to restart the Android Studio. I did and now I can see what I installed.
Make sure you have rights to all the files in the android-sdk-linux directory using:
sudo chown $USER -R ./android-sdk-linux