- Fix “SDK tools directory is missing” Error in Android Studio
- Method 1
- Method 2
- Method 3
- Method 4
- can’t install sdk tools for android-29 #57
- Comments
- fleficher commented Aug 28, 2019 •
- fleficher commented Aug 29, 2019
- bitce commented Aug 29, 2019
- fleficher commented Aug 30, 2019
- brittonjg commented Sep 3, 2019
- JeromeCHA commented Sep 4, 2019
- bitce commented Sep 5, 2019
- fleficher commented Sep 20, 2019
- koral— commented Sep 20, 2019
- lszucs commented Oct 4, 2019
- brittonjg commented Oct 4, 2019
- lszucs commented Oct 14, 2019
- VS 16.7.0 P3.1 Android SDK License Acceptance Dialog #4880
- Comments
- gmck commented Jun 28, 2020
- brendanzagaeski commented Jun 28, 2020
- Android studio – отсутствует каталог инструментов SDK «
- Проблема с «Android SDK tools are required» и её решение
Fix “SDK tools directory is missing” Error in Android Studio
Sometimes it happens with developers that when he/she starts the “android studio” program, displayed a window of “downloading components” which says: “Android SDK was installed to C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing “. So to fix “SDK tools directory missing” in android studio, try the following methods
Method 1
The Cause for this error -SDK tools package might not be installed.
Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory. (C:\Users\..\AppData\Local\Android\Sdk\tools.)
“HIDE OBSOLETE PACKAGES” BY DEFAULT SELECTED
“HIDE OBSOLETE PACKAGES” DESELCTED
Method 2
Another reason -Prolly due to inadequate storage available than requisite(minimum 4.53 GB) at your place of download, android SDK tools package did not get installed
Quick fix: Uninstall Android SDK (default location C:\Users\..\AppData\Local\Android\Sdk ) and install it again. This time affirms the minimum required storage space at your place of download. After execution check, if tools folder is now added in SDK directory.
REQUIRED FREE SPACE
COMPLETE SDK FOLDER
Method 3
Alternative reason- corporate proxy jamming the installer’s call to the internet, due to which android studio installer could not install SDK.
Quick fix: List the path to your corporate PAC file. For that, you need to find the URL. So, go to System Preferences -> Network -> Advanced -> Proxies -> Automatic Proxy Configuration -> Proxy Configuration File . Now once we know the correct URL, go to Configure -> “Appearance and Behavior” -> System Settings -> HTTP Proxy. Select “Automatic proxy configuration URL:” and enter the URL.
Method 4
Just as this error pops up, in place of clicking on ‘finish’ click ‘x’. Further, when it asks to reinitialize, Choose the recommended option. Then click Configure -> Project Defaults -> Project Structure and copy-paste or browse (AppData folder may be hidden) to C: / Users / .. / AppData / Local / android / SDK. Try running the project again. Hope this helps.
Источник
can’t install sdk tools for android-29 #57
Comments
fleficher commented Aug 28, 2019 •
Using v2.3.7 of this step, with a project with the following project configuration:
- build-tools : 29.0.2
- compile sdk: 29
- target sdk: 29
The step fail everytime with the following message:
The text was updated successfully, but these errors were encountered:
fleficher commented Aug 29, 2019
By the way, this issue is occurring using any macOS stack. There is no issue on Android + Ubuntu stack because it’s already installed on them but they are too slow to be used?
bitce commented Aug 29, 2019
Could you send us the corresponding build URL we could check out?
fleficher commented Aug 30, 2019
brittonjg commented Sep 3, 2019
My workflow is getting passed my _install-missing-android-tools, saying that the Android version is installed.
It then fails when the gradle tasks executes, with a similar warning to what @fleficher has posted. I am running this on a Mac Stack, I’ve tried switching to the Ubuntu Stack which has android-29 installed. Although I get other issues with that, which are related to our setup.
JeromeCHA commented Sep 4, 2019
We have the same issue too.
It is impossible to install missing SDK android-29 on Mac Stack. It fails with the same error
bitce commented Sep 5, 2019
Thanks for all the reports guys and sorry about this issue! We’re looking at it and will keep you all updated.
fleficher commented Sep 20, 2019
Hit @bitce do you have any news on this issue ?
koral— commented Sep 20, 2019
Workaround is to invoke sudo chmod -R a+w /usr/local/Caskroom/android-sdk in a script step.
lszucs commented Oct 4, 2019
Can you confirm whether the issue still persist? I cannot reproduce it on either an XCode 10 or an Xcode 11 stack.
If the issue persists, can you please reach out on the chat and reference this thread to fast forward it to level 3 support? (The Tooling Team 🙂 )
brittonjg commented Oct 4, 2019
Can you confirm whether the issue still persist? I cannot reproduce it on either an XCode 10 or an Xcode 11 stack.
If the issue persists, can you please reach out on the chat and reference this thread to fast forward it to level 3 support? (The Tooling Team 🙂 )
This appears to be resolved for us now.
If makes any difference, I am using a React setup with the XCode 10.1 stack. Although as mentioned above, it’s not causing us an issue anymore.
lszucs commented Oct 14, 2019
I’ll close this issue for now, as it seems the problem has been solved. Do not hesitate to reopen it, if your issue persist! 🙂
Источник
VS 16.7.0 P3.1 Android SDK License Acceptance Dialog #4880
Comments
gmck commented Jun 28, 2020
Nearly every compiler error triggers this dialog. When I Accept, the build window then displays the following.
The first time it happened, after updating to Preview 3.1, I then just updated the SDK manually. All is ok until the next compiler error when the dialog reappears. If I run it again — same result. Again all is ok until the next compiler error and back it comes. The cmdline-tools folder was created 24/07/2020 and contains a subfolder latest, which contains bin and lib folders both dated 24/07/2020. There are no files in cmdline-tools folder only the folder latest, so the Trying to fallback to «tools».. errors would be correct.
Manually running the Android SDK Manager within VS indicates there are no available updates.
The text was updated successfully, but these errors were encountered:
brendanzagaeski commented Jun 28, 2020
Thanks for submitting this item! This is an unfortunate known issue in Visual Studio 2019 version 16.7 Preview 3, but there are a few workaround options available:
Option A – Set the AndroidCommandLineToolsVersion MSBuild property to latest :
Open the .csproj project file for the Xamarin.Android app project in Visual Studio or another text editor.
Find an existing closing
tag in the file, and add the following additional
element after it:
This option is included in the Visual Studio release notes, but it’s a bit hard to find: https://docs.microsoft.com/visualstudio/releases/2019/release-notes-preview#xamarin
After a fix for this issue becomes available in the next Visual Studio 2019 version 16.7 Preview, be sure to remove the workaround
element to allow the project to use the default recommended value of AndroidCommandLineToolsVersion .
Option B – Temporarily disable the Auto Install Android SDKs feature and ignore the message in the Error List:
Open Tools > Options, open the Xamarin > Android Settings item, and uncheck Auto Install Android SDKs.
After a fix for this issue becomes available in the next Visual Studio 2019 version 16.7 Preview, be sure to re-enable Auto Install Android SDKs.
Option C – Click Cancel on the Android SDK — License Acceptance dialog each time it pops up and ignore the message in the Error List.
Explanation: In this particular case, the «missing Android SDKs» error does not interfere with the build process, so it is OK to ignore the error and dismiss the Android SDK — License Acceptance dialog each time it appears.
Источник
Android studio – отсутствует каталог инструментов SDK «
Когда я запускаю программу «android studio» , отобразилось окно «downloading components» котором говорится: «Android SDK was installed to: C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing » Я могу Не исправить, и мне нужна помощь!
«Android SDK был установлен на: C: / Users / user / AppData / Local / android / SDK2 SDK tools отсутствует» Это означает, что для Android SDK требуется папка «tools» , где был установлен этот SDK. Но эта папка «Инструменты» не установлена. Вероятно, из-за низкого объема хранения.
[РЕШЕНИЕ] : Удалите Android SDK и установите его снова. На этот раз просто убедитесь, что у вас есть ATLEAST 5GB (хотя на 3.2gb будет достаточно) свободного места, где вы собираетесь установить этот SDK. Как только установка будет завершена, просто проверьте, есть ли папка «инструменты» (в месте, где вы устанавливаете SDK)
Просто сделайте следующее, и все будет хорошо.
- Когда появляется ошибка, а не щелчок на «финише», нажмите «x». Он попросит вас инициализировать. Возьмите рекомендованный вариант.
- После его реконфигурации он вернется к главному экрану. Просто перейдите к
Configure -> Project Defaults -> Структура проекта и скопировать вставку или просмотр (папка appData может быть скрыта) в местоположение C: / Users / user / AppData / Local / android / SDK. - Завершите и снова попробуйте создать проект. Будет работать как очарование !! 😉
Если ваш каталог инструментов SDK отсутствует, возможно, вы случайно удалили его, и есть простой способ загрузить его и направить на него студию Android.
Сначала перейдите на сайт разработчика android ( https://developer.android.com/studio/index.html ), прокрутите страницу до конца и выберите свою загрузку в соответствии с вашей системой (но не загружайте версию установщика для окон ) Вам нужен zip-файл, содержащий SDK.
После загрузки просто поместите его в мои документы (MAC или WINDOWS), а затем, когда вы откроете экран студии Android, вы увидите всплывающее окно для установки SDK (например, время, когда у вас возникла ошибка), не нажимайте кнопку «Далее», переходите к просмотру, найдите этот файл И нажмите ОК. После этого идите дальше, и это будет работать как шарм.
Это было проблемой для меня, потому что у меня уже был SDK, установленный в другом каталоге. Чтобы сообщить Android Studio, где вам требуется SDK, вам нужно перейти к настройкам, но диалог «Каталог инструментов SDK отсутствует» всегда выводит всю программу, когда вы нажимаете «Готово». Вот как я «решил» это:
- Удалите свои папки
/.Android* (потеряв все ваши настройки: /).
Удаление папок .Android Studio может быть ненужным – я никогда не пытался нажимать X в исходном диалоговом окне ошибки – я только пытался «Готово», который выходит из Android Studio. Это возможно, если вы нажмете X, вы можете перейти к настройкам, но, к сожалению, я не могу вернуться и проверить.
У меня была эта проблема, когда я пытался переустановить Android Studio с помощью своего мастера. У меня уже была папка «tools».
В моем случае, в то время как каталог «tools» уже существует, он также предоставит ошибку «sdk tools directory» для своих подпапок. Как-то у моей папки sdk был только подкаталог libs.
Когда я вставлял в sdk / ant, sdk / apps, sdk / proguard, sdk / qemu, sdk / support и sdk / templates, мастер наконец был доволен этой конфигурацией и пошел загружать еще несколько файлов.
Попробуйте установить его в другом месте, возможно, это решит проблему. Кроме того, вы можете попробовать установить его на USB-накопитель.
Измените каталог SDK на C: \ Users \ username \ AppData \ Local \ Android \ Sdk
Если вы используете новейшую студию Android, вы можете настроить ее, используя Configure -> Project Defaults -> Project Structure
В моем случае это была установка в уже существующий каталог. Когда вы выбираете каталог для установки. Программа не позволит вам вводить несуществующий каталог. Поэтому выберите путь, вернитесь в главное окно и введите новое имя папки, где вы хотите установить SDK, возможно, функцию.
Я испытал эту ошибку, когда устанавливал Android Studio со слишком маленькой памятью, чтобы установить все необходимое. Это не помогло освободить память или установить Android SDK. Переустановив студию Android с достаточной памятью, начался запуск загрузки, когда я впервые открыл Android Studio.
Когда вы сначала устанавливаете студию android и все, установите sdk в новый файл, например C: \ Android \ sdk, и убедитесь, что все следующие параметры установки sdk указывают на папку, в которую вы установили sdk. Теперь он будет работать нормально … он должен иметь какое-то отношение к разрешениям в папке appdata, это то, что моя догадка
Я также столкнулся с той же проблемой, проблема со мной была в моем первом запуске, я не был подключен к Интернету должным образом. После подключения к Интернету потребовались некоторые обновления для загрузки, а затем он работал без каких-либо проблем
Ваша папка AppData скрыта, вы должны открыть ее
Источник
Проблема с «Android SDK tools are required» и её решение
Многие программисты, использующие для разработки под Android на Delphi и C++ Builder, часто сталкиваются со следующей проблемой.
После установки RAD Studio при попытке скомпилировать приложение или назначить устройство для его выполнения на экран выводится следующее сообщение:
В этом сообщении предлагается скачать и установить Android SDK tools, хотя на самом деле решить данную проблему можно гораздо проще. Но, вначале разберёмся в причине её возникновения.
Причина
Дело в том, что в последних версиях средства для разработки под Android изначально устанавливаются не полностью. В этом можно убедиться, если открыть соответствующий раздел в настройках («Tools» – «Options» – «SDK Manager»).
Там будет отображено несколько компонентов из-за отсутствия которых компиляция для Android не будет работать.
Решение проблемы
Для решения данной проблема нужно воспользоваться программой SDK Manager из того дистрибутива Android SDK, что входит в комплект поставки RAD Studio.
После её запуска необходимо:
- Выполнить установку всех пакетов, которые потребует программа после автоматической проверки при запуске. А, после перезапуститьSDKManager.
- Установить вuild-tools версии 22.0.1
После этого останется только один недостающий компонент. - Установить поддержкуAndroid 5.1 (API 22)
Теперь проблема решена окончательно.
Данный пример приведён для RAD Studio 10.1 Berlin. Для других версий принцип тот же самый, но могут меняться версии build-tools и API. Поэтому пример подробно проиллюстрирован скриншотами, чтобы показать какие из недостающих компонентов в какие пакеты Android SDK входят.
Что касается версий build-tools и API, то их можно очень легко определить на основании путей по умолчанию к соответствующим компонентам.
Для build-tools, по номеру версии названа папка, в которой расположен ZipAlign.exe:
C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-sdk-windows\build-tools\ 22.0.1 \ZipAlign.exe
Для API, это две последние цифры:
C:\Users\Public\Documents\Embarcadero\Studio\18.0\PlatformSDKs\android-sdk-windows\platforms\android- 22
Таким нехитрым способом можно добавить недостающие компоненты для компиляции Android приложений, не прибегая к скачиванию и установке Android SDK tools целиком.
Источник