The android sdk location is inside studio install location что это

Обновлено: 17.05.2024

Пожалуйста, укажите расположение Android SDK

Ваше местоположение SDK содержит символы не ASCII

Я изучил эти несколько похожие вопросы, но ни один из них не помог мне:

Я вижу, что путь действительно содержит символы, отличные от ASCII, но есть ли обходной путь, кроме удаления Android Studio, а затем установки его с нуля в другой каталог, например С: \ Android \ SDK ?

UPD :

Кажется, в настоящее время нет такого обходного пути

16 Answers 16

Update v3.3

enter image description here

Update:

Android Studio 3.1 update, some of the icon images have changed. Click 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

enter image description here

And your Android SDK Location will be here


2,477 2 2 gold badges 14 14 silver badges 34 34 bronze badges You can just copy-paste this if you have installed Android Studio with Android SDK %localappdata%\Android\sdk Tools->Android->SDK Manager if you cannot find the icon.

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

Xamarin

Folder

I hope these screenshots can help you out.


3,309 1 1 gold badge 29 29 silver badges 43 43 bronze badges

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

20k 8 8 gold badges 73 73 silver badges 67 67 bronze badges This varies. My android studio points to the directory that you have published. However if I just open SDK manager. It points to \android-sdk

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

enter image description here


4,570 13 13 gold badges 49 49 silver badges 92 92 bronze badges


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

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

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

Android SDK Manger from Visual Studio

In visual Studio :

Android studio setup after Xamarin

Note : you should not use Program Files path to install Android Studio due to the space in path !

2,729 3 3 gold badges 27 27 silver badges 25 25 bronze badges

On 28 April 2019 official procedure is the following:

  1. Download and install Android Studio from - link
  2. Start Android Studio. On first launch, the Android Studio will download latest Android SDK into officially accepted folder
  3. When Android studio finish downloading components you can copy/paste path from the "Downloading Components" view logs so you don't need to type your [Username]. For Windows: "C:\Users\ [Username] \AppData\Local\Android\Sdk"


I skipped step 2 myself as I though by installing Android studio you will get SDK as well, but that is not the case. You must start studio to finish installation.

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.


2,256 1 1 gold badge 19 19 silver badges 26 26 bronze badges

When you first time install Android Studio Setup, you can also see the SDK folder. For me it is:

enter image description here


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.

28 Answers 28

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

2,630 4 4 gold badges 17 17 silver badges 29 29 bronze badges Library only appears under <username> when navigated to through terminal. Going to that same location using finder renders it invisible for some reason. Finder hides the user home as standard. But can either use the menus, GO -> Home or just use the shortcut Cmd+Shft+H . Once in Home you will find Library and then Android. If you find this question and are trying to just launch the SDK manager (or AVD manager) without launching all of Android Studio you can also launch a terminal prompt and type open

Android Studio on Windows 8:

(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


AppData folder is hidden by default so you need to make it visible first then you can access it. The path is exactly the same for my Visual Studio installation (on Windows 10) as well which now supports cross platform apps using Xamarin.

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.


4,246 1 1 gold badge 20 20 silver badges 40 40 bronze badges Thats where mine was too. Using Windows 7 and latest Android Studio as of today 2/23/2017.

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

2,301 3 3 gold badges 19 19 silver badges 46 46 bronze badges


2,466 4 4 gold badges 45 45 silver badges 103 103 bronze badges I had it wrong there, and thats why i needed the path. The other solutions are better ones

Then when you launch Android Studio again, it will prompt you for the SDK path just point it to: C:\android-sdk\.

That link points to Android Studio, not to the SDK. any update? The SDK download is on the page linked, scroll down and its under command line tools only (but not necessary because it comes with Android Studio).

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.

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.


Yes, and command + shift + . is the shortcut to show hidden files. sdk path can be modified as %appdata%\..\Local\Android\sdk , Instead of C:\Users<username>\AppData\Local\Android\sdk

(AppData folder is hidden, check folder properties first)

This answer is the best as it provides info for all platforms. Should be the accepted one.

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.

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

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

Yes, it will prompt you to a download wizard. For mac

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.


8,174 7 7 gold badges 35 35 silver badges 56 56 bronze badges I am fairly new to programming so excuse my somewhat half witlessness, but I do not have Android in my program files. I am unsure where my original SDK would/should be or if I need to download it separately from Android Studio. Ahh ok. Yeah you need to download the SDK directly then, See Randoll Revers answer, just download the SDK manually and extract/save it to your user directory. Then you can go back into Project Defaults like you did before and point it to the SDK directory. You should be good to go then!

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]


19.7k 54 54 gold badges 67 67 silver badges 88 88 bronze badges


This appears to just be the same answer as another answer from over a year prior, with just "Ubuntu users" swapped in for "Mac users"

If your project is open click on Gradle Scripts >local.properties(SDK LOCATION) , open it and there is the location of sdk with name

Note don't forget the replace \\ to \ before coping the things(sdk 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


19.7k 54 54 gold badges 67 67 silver badges 88 88 bronze badges


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

4,371 7 7 gold badges 36 36 silver badges 56 56 bronze badges


Android SDK is in C:\Users\username\AppData\Local\Android\Sdk

Consider Using windows 7 64bits

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.

enter image description here


2,089 75 75 gold badges 26 26 silver badges 41 41 bronze badges

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.


19.7k 54 54 gold badges 67 67 silver badges 88 88 bronze badges 3,144 16 16 gold badges 67 67 silver badges 131 131 bronze badges

Necessory tolls for installations

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.

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.

Причина ошибки

Она банальна. Имя вашей учетной записи Windows написано не на английском. А программа брезгует устанавливать файлы в директорию, если папка в ней указана на другом языке (русский, турецкий, испанский, арабский и прочее).


Android SDK location

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:

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

This location has platform-tools and other SDK folders.

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


14.1k 13 13 gold badges 93 93 silver badges 117 117 bronze badges 7,023 17 17 gold badges 71 71 silver badges 147 147 bronze badges It is usually C:\Users\**username**\AppData\Local\Android\sdk

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?

1,745 2 2 gold badges 11 11 silver badges 10 10 bronze badges You can set the path manually from: %Home%\.AndroidStudio2.1\config\options\jdk.table.xml

Варианты устранения ошибки

Процесс устранения сводится к тому, чтобы обеспечить англоязычный путь к Android\ SDK.


Вариант 1: изменение пути

Банальный способ, который помог обойти ошибку:

    Зайдите на диск C: и создайте две папки Android\SDK.




Вариант 2: смена имени пользователя

Более замороченный способ со сменой имени профиля на англоязычное. Пока вы находитесь в этой учетной записи, переименовать папку невозможно. Поэтому:

  1. Через поиск найдите CMD и откройте от имени администратора.
  2. Введите команду net user Администратор /active:yes
  3. Выйдите из системы и зайдите в профиль только что включенной учетки администратора.
  4. Нажмите ПКМ на Пуск и выберите "Управление компьютером".
  5. Перейдите в раздел Управление компьютером - Локальные пользователи - Пользователи, нажмите ПКМ по имени учетной записи и отредактируйте ее.




Кстати говоря, способ, который находится в поиске, на первой странице в ютубе, не работает. По отзывам видно, что не у одного меня.

При создании символической ссылки командой mklink /D "C:\ android-sdk" "C:\ Users\ Игорь\ AppData\ Local\ Android\ sdk, она не отображается в пути установщика, а через проводник выдает "расположение недоступно".


В общем, устаняйте ошибку Android Studio, а сайт добавляйте в закладки. И до скорых встречь!

Устраняем ошибку: Your SDK location contains non-ASCII characters при установке Android Studio

При установке Android Studio столкнулся с проблемой установки SDK. Нажать кнопку "Next" нельзя, а внизу с пометкой "внимание" находится надпись: Your SDK location contains non-ASCII characters . Что делать в такой ситуации? Я нашел два рабочих решения.

3 ответа

На самом деле на данный момент нет другого способа, кроме как переустановить Android Studio в какой-то другой каталог без символов ASCII и пробелов, таких как С: \ Android \ SDK .

Если вы не хотите переустанавливать Android SDK в другом месте, вы также можете создать точку соединения , которая является ссылкой на фактическое местоположение. Вы можете использовать инструмент соединения для этого.

Например, вы можете создать каталог C: \ Android, а затем создать узел SDK и утверждать, что SDK живет там с

Операционная система будет отображать одинаковое содержимое в обоих путях, и приложения не будут знать разницу.

Я думаю, вы уже решили это, но я столкнулся с той же проблемой сегодня, и после небольшого исследования и некоторых раздражающих попыток я решил ее. Что я узнал, так это:

Используя функцию mklink , вы можете создать переход к местоположению, но он не будет работать, если вы создадите его в несуществующем местоположении (это «файл не найден», который вы получили). И в этом случае вы создаете соединение с несуществующим местоположением, поскольку C:\Users\username\AppData\Local\Android\Sdk должен (не уверен в этом) быть создан мастером установки Android Studio во время установки. Чтобы решить эту проблему, вы должны создать \Android\Sdk в C:\Users\username\AppData\Local и все готово.

Программа установки не показывает соединения с несуществующими местами в месте установки Sdk, поэтому, если вы не создадите папки, вы не сможете выбрать ссылку.

Наконец, что не менее важно, программа установки не позволяет устанавливать Sdk в папку в корневом каталоге C:\ , поэтому вам нужно создать соединение в любом другом каталоге, кроме корневого, или переместить его, если он уже там (это то, что я сделал).

Когда я писал это, установщик работал, и когда это было сделано, я столкнулся с точно такой же проблемой с расположением для хранения Android-проектов, и поэтому то же решение для установщика должно быть применено к Save location в < > шаг.

Это именно то, что я сделал:

1) Создать \Android\Sdk в C:\Users\username\AppData\Local\

2) Откройте cmd от имени администратора и введите следующую команду:

mklink /J "C:\..\android-sdk" "C:\Users\username\AppData\Local\Android\Sdk"

C:\WINDOWS\system32>Junction created for C:\..\android-sdk <<===>> C:\Users\username\AppData\Local\Android\Sdk

Примечание: android-sdk - это имя, которое будет иметь соединение, вы можете назвать его как угодно, и \..\ поместит его в папку, в которую вы хотите его вставить, убедитесь, что нет символов, отличных от ASCII в любом случае в названии папки.

3) В месте установки Sdk выберите C:\..\android-sdk , и установка будет готова к работе.

4) Повторите процесс для Save location для новых проектов, просто вместо C:\Users\username\AppData\Local\Android\Sdk используйте местоположение, в котором вы хотите сохранить проекты.

Читайте также: