unable to locate adb что делать
Unable to locate ADB Android studio, flutter
I know there is already post about this, but none seems to work for me. Android studio unable to locate ADB. I checked my adb.exe exists in the path folder. I have deleted my McAfee anti virus as well following the advice from before, but not working.
2 Answers 2
Found the solution. The virtual device api was Android 10+ (30), and I just added another virtual device (Android 10, 30). I don’t see the error any longer 😊👍👍
I had the same issue as you were facing, I have Researched the Whole Internet but found nothing useful. So, I somehow figured out the problem and fixed it, The problem is at
Whenever we create a new project due to some reason the Module SDK is not set up automatically. Thus the ADB manager was throwing an error ‘Unable to locate AVD’, which is not that fatal as the error/warning is not stopping us from launching /starting the emulator, but it is so annoying to see that pop-up box. So here is my simple and quick fix.
Click on the project folder, tap the dropdown icon just beside it.
Now Navigate to the path below.
Now Click on the file GeneratedPluginRegistrant.java to open it.
Once it is open, At the Top you will notice a bar that says ‘Module SDK is not defined’,
Now right against it, you will also see a hyper-text named ‘Setup SDK’, Just Click on it.
That will open a Pop-up Box with the title ‘Select project SDK’.
Now select the Android Platform API and then click OK. After that being done Restart your IDE.
Your Problem will be Solved. And you will also notice that Emulator Opens up way faster than before.
The Above Steps has to be performed with every new flutter project.
I have already answered the problem here before.
Follow this link to see the pictures and step by step process.
When I launch emulator in Android Studio through AVD, it keeps on having this annoying popup «unable to locate avd».
FYI, I am developing flutter on Android Studio 4.0
5 Answers 5
I had the same issue as you were facing, I have Researched the Whole Internet but found nothing useful. So, I somehow figured out the problem and fixed it, The problem is at
Whenever we create a new project due to some reason the Module SDK is not set up automatically. Thus the ADB manager was throwing an error ‘Unable to locate AVD’, which is not that fatal as the error/warning is not stopping us from launching /starting the emulator, but it is so annoying to see that pop-up box. So here is my simple and quick fix.
Click on the project folder, tap the dropdown icon just beside it.
Now Navigate to the path below.
> android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
Now Click on the file GeneratedPluginRegistrant.java to open it.
Once it is open, At the Top you will notice a bar that says ‘Module SDK is not defined‘,
Now right against it, you will also see a hyper-text named ‘Setup SDK‘, Just Click on it.
That will open a Pop-up Box with the title ‘Select project SDK‘.
Now select the Android Platform API and then click OK. After that being done Restart your IDE.
Your Problem will be Solved. And you will also notice that Emulator Opens up way faster than before.
NOTE:
The Above Steps has to be performed with every new flutter project.
I have attached some screenshots just follow them.
The Problem
The Below image represents the annoying Popup-box that you encounter while launching the AVD which we are going to fix.
Step 1 : Close the AVD window
Step 2: Navigate to GeneratedPluginRegistrant.java
Step 3: Look for Module SDK not Defined
Step 4: Against to Module SDK click on Setup SDK hyper-text.
Step 5: Select any Android SDK version
Step 7: Restart Android Studio IDE.
After Restart you wont see the Annoying popup box anymore.
«unable to locate adb» using Android Studio [duplicate]
13 Answers 13
If you are still having problems, you may need to set the Project SDK.
I hope this saves someone some hours of pain.
if using avast go for virus chest,will find adb,restore it by clicking right button..thats all,perfectly works
(I am using Android Studio 3.0.1)
I use android studio in Windows 7 and i have AVG for antivirus. The first time you launch adb, AVG prompts you to add avg.exe in antivirus vault. If you accept, then you android studio dont have access to run adb.exe. So open avg >> options >> Virus Vault >> Restore (select the adb file)
In Android Studio, Click on ‘Tools’ on the top tab bar of android studio
Tools >> Android >> SDK Manager >> Launch Standalone Sdk manager
Due to some problem my adb.exe, was lost. My space of work suffered an electrical energy interruption, after that, I could not run or compile android programs.
Adb.exe is a file which should be located in your [android directory]/sdk/platform-tools. In my case, the file dissapeared, however the platform-tools was ther. My solution was as follows:
This was well for me
Else this will helps you
The ADB is now located in the Android SDK platform-tools.
Check your [sdk directory]/platform-tools directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.
Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a «Launch Standalone SDK manager» link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the
«Tools > Android SDK platform tools». If the above does not solve the problem, try reinstalling the tools: open the «Standalone SDK manager» and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.
Ошибка: невозможно найти adb в SDK в Android Studio
Кто-нибудь знает что это значит? Я вроде как noobish для Android. Когда я нажимаю кнопку «запустить» на своем симуляторе, я получаю это сообщение.
EDIT: я использую Android Studio
Кроме того, вы можете попробовать автономный диспетчер SDK: откройте диспетчер SDK и вы увидите ссылку «Запустить автономный диспетчер SDK» где-нибудь внизу окна настроек. Нажмите и откройте автономный менеджер SDK, затем установите / обновите
«Инструменты> Инструменты платформы Android SDK».
Если вышеуказанное не решит проблему, попробуйте переустановить инструменты: откройте «Standalone SDK manager» и удалите инструменты платформы Android SDK, полностью удалите [your sdk directory]/platform-tools и установите его снова с помощью SDK менеджер.
Надеюсь это поможет!
Для тех, кто все еще сталкивается с этой проблемой. У меня была аналогичная проблема, когда я мог видеть свое устройство из adb в командной строке с помощью adb devices но Android Studio не узнает, когда я подключил устройство и выбрал бы:
Unable to obtain result of ‘adb version’
Я попытался запустить / остановить adb, uninstalls, платформенных инструментов и многое другое. Я обнаружил, что внутри моей папки C:\Users\ \AppData\Local\Android меня было несколько папок sdk. Я выполнил следующее:
Надеюсь, это поможет кому-нибудь когда-нибудь с их проблемой.
В Android Studio нажмите «Инструменты» в верхней панели вкладок студии Android.
Инструменты >> Android >> SDK Manager >> Запуск автономного диспетчера Sdk
Там вы можете ясно видеть, какой инструмент платформы отсутствует, а затем просто установите это, и ваш adb начнет работать должным образом.
Полностью установите по крайней мере один пакет Api (Android Api 23 или 24).
Если вы используете Android Studio и имеете защиту AVG, файл adb.exe может находиться в Вирусном хранилище. Это была моя проблема. Исправить: открыть AVG. Выберите «Параметры» (вверху справа), затем «Вирусное хранилище». Если вы видите файл adb.exe, выберите его и нажмите «Восстановить».
Попробуйте это: File-> Структура проекта в структуре проекта Left> SDKs местоположение SDK выберите местоположение Android SDK (использование старой версии Нажмите +, добавьте еще один sdk)
Просто зайдите в Менеджер SDK и установите Android SDK Tools
Да, у меня такой же опыт
АБР теперь находится в каталоге инструментов платформы.
Korsosa сказал, что проверьте его каталог [sdk directory] / platform-tools, если он существует. Если нет, то откройте диспетчер SDK в Android Studio (кнопка где-то в верхнем меню, логотип Android со стрелкой вниз), а также загрузите и установите Tools> Android SDK Platform-tools.
Если у вас есть инструменты для платформы, у вас есть файл adb.exe. В моем случае этот файл был сломан, поэтому загрузите этот инструмент платформы снова
Если у вас уже установлен Android SDK Platform Tool, перейдите в меню «Файл»> «Настройки»> «Настройки системы»> «Android SDK»> «Запустить автономный диспетчер SDK».
В разделе «Сервис» вы увидите, что Android SDK Platform-Tools удалена. Поэтому отмените выбор всех и установите флажок и просто нажмите кнопку «Установить».
Даже после загрузки определенного требуемого файла или всего, мы можем столкнуться с ошибкой выполнения файла.
Неудача выполнения файла может быть вызвана следующими причинами:
1. пользовательские разрешения / с (наследование обработано).
2. Коррумпированный файл.
3. доступ к файлу другим приложением одновременно.
4. Файл заблокирован антивирусным программным обеспечением.
Странно мой антивирус обнаружил файлы adb, avd и jndispatch.dll как нечистые файлы и выгрузил их в хранилище.
Я должен был восстановить их из хранилища AVG. Настройте AVG, чтобы игнорировать (добавить папку в список исключений) в AndroidStudio и другую требуемую папку.
Если вы без антивируса и все еще сталкиваетесь с этой проблемой, помните, что окна 7 и выше имеют встроенный «защитник окон». Посмотрите, делает ли этот человек то же самое. Поместите свою папку в список «исключение» антивируса, так как вендору доверяют по всему миру.
Этот же ответ пойдет на « Ошибка при запуске AVD с процессором AMD ». У меня нет достаточной репутации, чтобы ответить на этот вопрос там и там.
Если вы используете Windows 10 (может быть, и Windows 7) и студия Android, возможно, это связано с проблемой виртуальной памяти Windows. Невозможно получить версию adb
В моем случае я пробовал выше, но похоже, что adb не будет установлен, поэтому все, что мне нужно было сделать, это скопировать adb.exe в папку и работать! Я скопировал adb.exe и вставил следующие пути на моем устройстве:
C: \ Users \ Your-Device-имя пользователя \ AppData \ Local \ Android \ SDK
C: \ Users \ Your-Device-имя пользователя \ AppData \ Local \ Android \ SDK \ платформенные инструменты
Надеюсь, это поможет кому-то, кто в этом нуждается.
IllegalArgumentException: Unable to locate adb in Android Studio v2.3
Does anyone know how to fix this?
I installed android studio v2.3 and it won’t let me run my app saying the error. I searched online and said to click the Launch Standalone Sdk manager but I am unable to locate it.
12 Answers 12
I also encountered this problem, when I tried to move an Android project from one computer to another. Since I have Android Studio 2.3 I don’t have the option to run the standalone SDK-manager (or at least, I don’t see any button).
On this website
http://m.blog.csdn.net/article/details?id=51204114
I found the solution to resolve the problem.
Go to Tools >> Android >> SDK-Manager >> SDK-Tools
Uncheck «Android SDK Platform-Tools» and press Apply to uninstall it again. Then check it again to re-install it. Then I was able to compile my project again.
On my system Avast Antivirus kept quarantining ‘adb.exe’, so the file would effectively disappear. Once I suspected that, it was simply (in Avast):
Protection > Virus Chest > [three dot menu by the file] > Restore and add exception
If I would change a folder name, or re-install, I would have to do it again, but at least I knew where to look.