Android SDK Location

I have Xamarin Studio and I need to specify the location of the Android SDK. Previously, Xamarin Studio was running on my computer, and for some reason I need to log into it again.

I entered the following location:

C:\Users\**username**\AppData\Local\Android\android-sdk

Xamarin Studio does not accept this location and displays the following message:

 No SDK found at the specified location 

This is where the platform tools and other SDK folders are located.

Why does this not work, and what should I do?

+127
android sdk xamarin-studio
Aug 07 '14 at 7:29
source share
13 answers

Do you have a screen for the contents of your folder? This is my setup:

Xamarin

Folder

I hope these screenshots help you.

+55
Aug 07 '14 at 15:14
source share

Update v3.3

enter image description here

Update:

Android Studio 3.1 update, some icon images changed. Click on this icon in Android Studio.

enter image description here

Original:

Click this icon in Android Studio for the Android SDK Manager

enter image description here

And your Android SDK location will be here enter image description here

+161
Dec 31 '15 at 6:02
source share

The Android SDK path is usually C:\Users\<username>\AppData\Local\Android\sdk .

+45
Jul 05 '16 at 0:30
source share

Try opening Android Sdk Manager, and the path will appear in the status bar.

enter image description here

+11
Aug 22 '16 at 18:50
source share

If you installed only Xamarin with Visual Studio setup, the location of the Android SDK is:

 C:\Program Files (x86)\Android\android-sdk 

You can find it in the Android SDK Manager, as Raj Asapu said

In Visual Studio: Android SDK Manger from Visual Studio

Note. You cannot use the path to the program files to install Android Studio because of a space in the path! Installing Android Studio after Xamarin

+6
Jul 28 '17 at 15:22
source share

The default location for Android sdk (s) on a Mac:

/Users/*username*/Library/Android/sdk

+5
Sep 13 '16 at 13:41
source share

The question does not seem to require a software solution, but my Google search brought me here anyway. Here, my C # tries to discover where the SDK is installed, based on the most common installation paths.

 static string FindAndroidSDKPath() { string uniqueFile = Path.Combine("platform-tools", "adb.exe"); // look for adb in Android folders string[] searchDirs = { // User/AppData/Local Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), // Program Files Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), // Program Files (x86) (it okay if we're on 32-bit, we check if this folder exists first) Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + " (x86)", // User/AppData/Roaming Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) }; foreach (string searchDir in searchDirs) { string androidDir = Path.Combine(searchDir, "Android"); if (Directory.Exists(androidDir)) { string[] subDirs = Directory.GetDirectories(androidDir, "*sdk*", SearchOption.TopDirectoryOnly); foreach (string subDir in subDirs) { string path = Path.Combine(subDir, uniqueFile); if (File.Exists(path)) { // found unique file at DIR/Android return subDir; } } } } // no luck finding SDK! :( return null; } 

I need this because I am writing an extension for a C # program to work with Android Studio / Gradle. Hope someone finds this approach useful.

+3
Aug 29 '16 at 7:20
source share

If you can run "sdkmanager" from the command line, then running sdkmanager --verbose --list will show the paths that it checks.

For example, I installed the SDK in c:\spool\Android and for me I ran sdkmanager --verbose --list looks like this:

enter image description here

 >sdkmanager --list --verbose Info: Parsing c:\spool\Android\build-tools\27.0.3\package.xml Info: Parsing c:\spool\Android\emulator\package.xml Info: Parsing c:\spool\Android\extras\android\m2repository\package.xml Info: Parsing c:\spool\Android\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml Info: Parsing c:\spool\Android\patcher\v4\package.xml Info: Parsing c:\spool\Android\platform-tools\package.xml Info: Parsing c:\spool\Android\platforms\android-27\package.xml Info: Parsing c:\spool\Android\tools\package.xml Installed packages:=====================] 100% Computing updates... -------------------------------------- build-tools;27.0.3 Description: Android SDK Build-Tools 27.0.3 Version: 27.0.3 Installed Location: c:\spool\Android\build-tools\27.0.3 

PS On another PC, I let Android Studio install the Android SDK for me, and the SDK ended up in C:\Users\MyUsername\AppData\Local\Android\Sdk .

+3
Jun 03 '18 at 17:14
source share

Have you tried to find this folder through Windows Explorer? Can this be seen? The folder may be hidden (install by default - it is hidden by the Windows operating system in the users folder). Just make sure that you can view hidden folders in Windows Explorer (according to the settings in the Windows control panel> appearance and personalization> folder settings> show hidden files and folders.

This happened to me, because Windows could not find the SDK folder, which was necessary for the Android Studio SDK path, and was solved by displaying hidden files and folders, which allowed me to complete the installation of the default SDK installation path.

+2
Jul 25 '15 at 5:27
source share

If you downloaded the sdk manager zip file (from https://developer.android.com/studio/#downloads ), then you have the Android SDK Location as the root of the extracted folder.

So stupid, but it took me a while as a beginner.

+2
Aug 19 '18 at 14:27
source share

On April 28, 2019, the official procedure is as follows:

  1. You can download and install Android Studio from the link
  2. Launch Android Studio. When you start Android Studio for the first time, it downloads the latest Android SDK to an officially accepted folder.
  3. When Android Studio finishes downloading the components, you can copy / paste the path from the "Download components" view logs, so you won’t need to enter your [Username]. For Windows: " C: \ Users \ [Username] \ AppData \ Local \ Android \ Sdk "
+2
Apr 28 '19 at 3:35
source share

press WIN + R and in the launch dialog box start the dialog Do the following: **% appdata% .. \ Local \ Android **

You will now be presented with a folder explorer displaying the parent directory of the SDK.

+1
Oct 08 '16 at 15:44
source share

I found it here C: \ Users \ username \ AppData \ Local \ Android \ sdk.

0
Sep 25 '16 at 2:37
source share



All Articles