Android SDK location

2019-01-10 15:47发布

I have Xamarin Studio, and I need to specify the Android SDK Location. I have previously had Xamarin Studio working on my pc, and for some reason, I need to enter this again.

I have 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 location has platform-tools and other SDK folders.

Why is this not working, and what should I do?

12条回答
\"骚年 ilove
2楼-- · 2019-01-10 16:26

Try to open the Android Sdk manager and the path would be displayed on the status bar.

enter image description here

查看更多
家丑人穷心不美
3楼-- · 2019-01-10 16:27

Have you tried to find this folder via the Windows explorer? Can it been seen? Maybe the folder is hidden (by default install - it is hidden by the Windows operating system in the users folder). Just check that you can view hidden folders in Windows explorer (by the settings in the windows control panel > appearance and personalization > folder options > show hidden files and folders.

This happened to me as the Windows OS could not find the SDK folder which was required for the Android Studio SDK path, and was resolved by showing hidden files and folders, which enabled me to complete the default SDK install path location.

查看更多
老娘就宠你
4楼-- · 2019-01-10 16:29

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

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

查看更多
疯言疯语
5楼-- · 2019-01-10 16:33

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

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

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
查看更多
何必那么认真
6楼-- · 2019-01-10 16:35

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

查看更多
萌系小妹纸
7楼-- · 2019-01-10 16:36

press WIN+R and from the run dialog run dialog Execute the following: **%appdata%..\Local\Android**

You should now be presented with Folder Explorer displaying the parent directory of the SDK.

查看更多
登录 后发表回答