[android] Android Studio SDK location

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?

This question is related to android sdk android-studio

The answer is


C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe

check this location in windows


For Mac users running:

  1. Open Android Studio
  2. Select Android Studio -> Preferences -> System Settings -> Android SDK
  3. 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


Start Android Studio and select Configure --> SDK Manager

enter image description here

Then, check the path of Android SDK

enter image description here

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.

enter image description here


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.


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.


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.


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


Consider Using windows 7 64bits

C:\Users\Administrador\AppData\Local\Android\sdk


For Mac/OSX the default location is /Users/<username>/Library/Android/sdk.


For Ubuntu users running:

  1. Open Android Studio
  2. Select Android Studio -> Settings -> Android SDK or Android Studio -> Project structure -> SDK location or to open Project structure shortcut is (Ctrl+Alt+Shift+s)
  3. 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)


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


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.


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.


C:\Users\username\AppData\Local\Android\sdk

This is the right path, if you looking up for sdkmanager.


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

Latest edition

outdate: Appearance & Behavior -> System Settings -> Android SDK

There the sdk location was listed as Android SDK Location


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.

enter image description here


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!


  • 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


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:

  1. 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]

  2. Refer this image. [Click the option shown in the picture][2]

  3. Click apply and ok.

  4. 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 )

  5. 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


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.


If you are working on React native,please make sure you have installed these tools because I was missing and it resolved my issue Necessory tolls for installations React Native doc for installation


Examples related to android

Under what circumstances can I call findViewById with an Options Menu / Action Bar item? How to implement a simple scenario the OO way My eclipse won't open, i download the bundle pack it keeps saying error log getting " (1) no such column: _id10 " error java doesn't run if structure inside of onclick listener Cannot retrieve string(s) from preferences (settings) strange error in my Animation Drawable how to put image in a bundle and pass it to another activity FragmentActivity to Fragment A failure occurred while executing com.android.build.gradle.internal.tasks

Examples related to sdk

I am receiving warning in Facebook Application using PHP SDK Has been compiled by a more recent version of the Java Runtime (class file version 57.0) Difference between OpenJDK and Adoptium/AdoptOpenJDK Error:Failed to open zip file. Gradle's dependency cache may be corrupt Can't accept license agreement Android SDK Platform 24 Automatically accept all SDK licences Android SDK location should not contain whitespace, as this cause problems with NDK tools Android SDK folder taking a lot of disk space. Do we need to keep all of the System Images? "The following SDK components were not installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22" Can't find SDK folder inside Android studio path, and SDK manager not opening

Examples related to android-studio

A failure occurred while executing com.android.build.gradle.internal.tasks "Failed to install the following Android SDK packages as some licences have not been accepted" error Android Gradle 5.0 Update:Cause: org.jetbrains.plugins.gradle.tooling.util This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' Flutter plugin not installed error;. When running flutter doctor ADB.exe is obsolete and has serious performance problems Android design support library for API 28 (P) not working Flutter command not found How to find the path of Flutter SDK