Ошибка не обнаружен adb exe

Yep, looks like LOTS of folks (way too many, shame on you, Google) have come up with a missing ‘adb.exe’ symptom. (In my case, I claim that it never got installed at all, during my Windows-10 bundled installation of Android Studio,
version 3.1.2.)

Ok, here’s my recommended solution (which I borrowed and modified slightly from
this question): Android Studio SDK installer hangs indefinitely at Unzipping ‘platform-tools/systrace/NOTICE’

The second(?) answer is essentially correct…»Dx Arout» boldly and correctly recommends:

(1) Delete platform-tools from this location C:\Users\AppData\Local\Android\Sdk

and he/she’s got the right idea, to then launch Android Studio and try to get it to complain and offer to fix the problem for you…says to:

(2) Then restart Android Studio. After gradle build finish it will ask for installation of missing tools. just click there. It should work fine.

Well, no, not quite. It didn’t ask me anything, because I didn’t get any
errors from current proj’s build. So, I had to ‘kick-it-in-the-*ss’, by
launching Tools -> SDK Manager, choosing the middle tab (‘SDK Tools’), and going to an already-installed entry named ‘Android SDK Build-Tools 28-rc2’ (your exact version entry may be somewhat different). So, click on its checkbox, choose ‘Show package details’ checkbox (down in lower-right corner). I lit up ALL the package variants, and forced it to install them all. That may have been overkill, but voila…once that completed, ‘adb’ DID get installed, as confirmed
when I launched a debug run. (Down in the ‘logcat’ tab’s log-message window, the two RED headings, finally turned to black and debugging was finally USEABLE!

Cheers…

I installed Android Studio 1.2.1.1 and also created virtual device. I am trying to install one app (APK file) through command line but I could not find adb.exe file on my machine. Please help where should I look for adb.exe file on the machine.

Mike Laren's user avatar

Mike Laren

8,04817 gold badges51 silver badges70 bronze badges

asked Jun 12, 2015 at 21:32

KKG's user avatar

The adb.exe file will be located at your Android SDK folder, inside platform-tools

...\android-sdk-path\platform-tools\adb.exe

The default location where Android SDK is installed is:

C:\Users\<insert username here>\AppData\Local\Android\sdk\

So adb will be located at:

C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe

To access it on a command line, open cmd.exe and type:

cd C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\

and then your normal command

adb <insert parameters here>

answered Jun 12, 2015 at 21:36

ᴘᴀɴᴀʏɪᴏᴛɪs's user avatar

ᴘᴀɴᴀʏɪᴏᴛɪsᴘᴀɴᴀʏɪᴏᴛɪs

7,1899 gold badges50 silver badges81 bronze badges

4

May be adb.exe file is missing form your computer. Try deleting platform-tools folder and re-download it from SDKManager.

answered Dec 4, 2020 at 9:00

Sailesh Limbu's user avatar

Mac OS El Capitan has it located at /Users/[username]/depot_tools/src/chrome/browser/devtools/device

answered Oct 21, 2016 at 16:22

Marie Goodart's user avatar

In my case, adb.exe got deleted after Android Studio update. I copied all the contents under platform-tools to another directory, deleted all the contents under platform-tools and installed platform-tools from Android SDK Manager.

answered Aug 11, 2018 at 13:59

Vibhuti's user avatar

VibhutiVibhuti

7021 gold badge7 silver badges21 bronze badges

Make sure in Android Studio, under System Settings > Andorid SDK > tab called SDK Tools, you have checked this option:

enter image description here

answered Sep 8, 2022 at 15:13

Leonardo Nomdedeu's user avatar

Android Debug Bridge или ADB позволяет связываться с вашими устройствами через интерфейс командной строки. Его можно использовать для различных целей, поскольку он облегчает выполнение множества действий, включая установку и отладку приложений на вашем устройстве. При попытке запустить приложение через Android Studio вы можете столкнуться с сообщением об ошибке «Невозможно найти ADB», которое останавливает симуляцию. Как оказалось, сообщение об ошибке появляется, когда Android Studio не может найти файл ADB.exe, который находится в папке инструментов платформы.

Невозможно найти ADB

Это может произойти по нескольким причинам, в том числе из-за того, что антивирусное программное обеспечение удаляет файл adb.exe из-за ложной тревоги. Подобные проблемы довольно часто встречаются с антивирусным программным обеспечением, и поэтому при его использовании вам необходимо убедиться, что оно не вызывает ложное срабатывание для файлов, с которыми вы работаете. В дополнение к этому, настройки вашего проекта также могут вызывать появление этого сообщения об ошибке. Чтобы понять и лучше понять рассматриваемое сообщение об ошибке, давайте более подробно обсудим различные причины, по которым может возникнуть проблема. Однако помните, что причины включают, но не ограничиваются перечисленными ниже.

  • Сторонний антивирус. Известно, что антивирусное программное обеспечение вызывает несколько проблем, когда они удаляют файл из вашей системы из-за ложного срабатывания. Известно, что антивирус Avast часто вызывает это с ADB, где он блокирует файл в ящике с вирусами. Если это применимо, вам придется восстановить файл оттуда, и все должно быть хорошо. Однако имейте в виду, что он может не только ограничиваться Avast, если вы используете другой сторонний антивирус, но он также может вызывать проблему, и поэтому вам следует просмотреть файлы, помещенные в карантин приложением.
  • Настройки проекта — как оказалось, в некоторых случаях сообщение об ошибке может возникать из-за настроек вашего проекта. Android SDK по умолчанию не предоставляет проектам SDK по умолчанию. В таком сценарии вам нужно будет перейти в настройки проекта и предоставить проекту SDK, для которого по умолчанию установлено значение Нет SDK.
  • Поврежденные инструменты платформы — в дополнение к вышеупомянутым причинам, если ваши инструменты платформы повреждены или повреждены, это также может привести к появлению сообщения об ошибке. Если этот сценарий применим, Защитник Windows или любое стороннее программное обеспечение, вероятно, поместит его в карантин, и в результате у вас больше нет файла adb.exe в папке инструментов платформы. В таком случае вам просто нужно будет переустановить инструменты платформы, чтобы решить проблему.

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

Как оказалось, первое, что вам следует сделать, когда вы столкнетесь с указанным сообщением об ошибке, — это проверить стороннее антивирусное программное обеспечение, установленное в вашей системе. Чаще всего антивирусное программное обеспечение может запускать ложные срабатывания и помещать в карантин файлы, которые совершенно не опасны. В этом случае adb.exe будет целевым файлом, который антивирусное программное обеспечение расценивает как опасную или потенциальную угрозу и в результате удаляет из вашей системы.

Если этот случай относится к вам, особенно если вы используете антивирус Avast, вам следует проверить вирусный ящик вашего антивирусного программного обеспечения, чтобы узнать, был ли файл помещен в карантин. Если это так, просто восстановите файл и попробуйте запустить приложение. Для этого следуйте приведенным ниже инструкциям:

  1. Прежде всего, щелкните правой кнопкой мыши значок антивируса на панели задач, а затем в появившемся меню выберите Virus Chest.Открытие сундука с вирусами
  2. Здесь проверьте, присутствует ли файл ABD.exe. Если это так, нажмите на три горизонтальные точки перед файлом.
  3. В появившемся раскрывающемся меню выберите параметр «Восстановить». Это удалит файл из хранилища вирусов, и вы сможете его использовать.Восстановление файла из вирусного хранилища
  4. Кроме того, вы также можете выбрать параметр «Восстановить и добавить исключение», чтобы убедиться, что оно больше не помещается в хранилище вирусов.

Изменить настройки проекта

Если ваше антивирусное программное обеспечение не является виновником или оно не относится к вам, сообщение об ошибке, вероятно, вызвано настройками вашего проекта. Это происходит, когда вашему проекту не назначен SDK, и в результате у него нет доступа к ADB, поэтому вы сталкиваетесь с соответствующим сообщением об ошибке. Чтобы решить эту проблему, вам нужно будет изменить настройки проекта по умолчанию, которые по умолчанию установлены на Нет SDK. Эти настройки можно найти в разделе «Структура проекта». Для этого следуйте приведенным ниже инструкциям:

  1. Прежде всего, убедитесь, что Android Studio открыта.
  2. Затем перейдите в Файл> Структура проекта. Кроме того, вы можете щелкнуть значок «Структура проекта», как показано на рисунке внизу.
  3. Когда откроется окно «Структура проекта», нажмите «Проект» в разделе «Настройки проекта».
  4. Затем перейдите к тому, что установлено для Project SDK. Если для него установлено значение Нет SDK, измените его на Android API XX Platform в раскрывающемся меню.Изменение SDK проекта по умолчанию
  5. Если в раскрывающемся меню нет параметров, вы можете нажать кнопку «Создать», выбрать Android SDK, а затем выбрать каталог, в котором находится Android SDK.
  6. Как только вы это сделаете, вы сможете выбрать Android API XX Platform в раскрывающемся меню.
  7. После этого нажмите кнопку ОК и попробуйте запустить приложение, чтобы проверить, сохраняется ли проблема.

Установите Android SDK из SDK Manager

Как оказалось, если в вашей системе отсутствует SDK соответствующей версии Android, это также вызовет появление сообщения об ошибке. Если этот случай применим, вы можете легко устранить сообщение об ошибке, установив соответствующий Android SDK из диспетчера SDK в Android Studio. Для этого следуйте приведенным ниже инструкциям:

  1. В окне Android Studio откройте окно «Настройки», выбрав «Файл»> «Настройки».
  2. Затем с левой стороны перейдите в Внешний вид и поведение> Системные настройки> Android SDK.SDK Manager
  3. После того, как вы войдете в диспетчер SDK, в разделе «Платформы SDK» установите платформу SDK для соответствующей версии Android.
  4. После того, как вы это сделаете, попробуйте запустить приложение, чтобы проверить, отображается ли сообщение об ошибке.

Переустановите инструменты платформы

Наконец, если вы все еще сталкиваетесь с указанным сообщением об ошибке после использования упомянутых выше методов, возможно, проблема вызвана поврежденными или поврежденными файлами инструментов платформы. Если этот сценарий применим к вам, вам придется переустановить инструменты платформы в вашей системе, чтобы избавиться от этого сообщения об ошибке. Это легко сделать через SDK Manager. Вы можете удалить инструменты платформы через SDK Manager, и после этого вы можете легко установить его снова с помощью нескольких щелчков мышью. Для этого следуйте приведенным ниже инструкциям:

  1. Прежде всего, закройте Android Studio, а затем откройте диспетчер задач, щелкнув правой кнопкой мыши панель задач. В появившемся меню выберите Диспетчер задач.Открытие диспетчера задач
  2. В окне диспетчера задач в разделе «Процессы» найдите процесс ADB.exe и завершите его.
  3. Как только вы это сделаете, снова откройте Android Studio.
  4. Теперь вам нужно открыть диспетчер SDK. Для этого щелкните значок коробки со стрелкой вниз, как показано на рисунке.Открытие SDK Manager
  5. После открытия диспетчера SDK перейдите на вкладку «Инструменты SDK».Переход на вкладку SDK Tools
  6. На вкладке SDK Tools прокрутите вниз, пока не увидите Android SDK Platform-Tools. Снимите флажок и нажмите ОК.Инструменты платформы Android в SDK Manager
  7. Это приведет к удалению инструментов платформы из вашей среды IDE. Подождите, пока он завершит удаление.
  8. После удаления и синхронизации Gradle снова откройте диспетчер SDK и снова переключитесь на вкладку «Инструменты SDK». Здесь снова найдите Android SDK Platform-Tools и отметьте его. Наконец, нажмите «ОК» и дождитесь его завершения, а затем синхронизируйте свой проект.
  9. После того, как все это будет сделано, попробуйте запустить свое приложение, чтобы увидеть, появляется ли сообщение об ошибке.

How to fix Could not find ‘adb.exe’?

I think my question is one of the most asked and answered question of the Android world. I read and tried them all.

  • I checked and update my environment variables.
  • I desinstalled and reinstalled ANdroid Studio
  • I copied pasted adb in all possible folders:
    C:UsersNinoAppDataLocalAndroidSdk
    C:Program FilesAndroid
    C:Program FilesAndroidtools
    C:Program FilesAndroidplatform-tools

In fact I spent all the day by searching, reading and testing all the solution possible.

And nothing fixed my problem. So I really need your help.

I am newbie and I want to share my experience. Here is my code:

from appium import webdriver
import unittest

from selenium.webdriver.common.by import By


class Instagram(unittest.TestCase):
    def setUp(self):
        desired_caps = {}
        desired_caps['platformName']='Android'
        desired_caps['platformVersion']='6.0'
        desired_caps['deviceName']='S6S5IN3G'
        desired_caps['noReset']='true'
        desired_caps['appPackage']='com.instagram'
        desired_caps['appActivity']='com.instagram.android.activity.MainTabActivity'

        self.driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
        #self.driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)

    def tearDown(self):
        self.driver.quit()

    def test_scrap_email(self):
        search_button = self.driver.findElement(By.xpath ("//android.widget.ImageView[@bounds='[126,800][162,836]']"))
        search_button.click()



if __name__ == '__main__':
    suite = unittest.Testloader().loadTestsFromTestCase(Instagram)
    unittest.TextTestRunner(verbosity=1).run(suite)

This is the errors:

Testing started at 01:00 …
C:UsersNinoPycharmProjectsInstagramvenvScriptspython.exe
«C:Program FilesJetBrainsPyCharm Community Edition
2019.1.3helperspycharm_jb_unittest_runner.py» —target mybot_instagram.Instagram.test_scrap_email Launching unittests with
arguments python -m unittest
mybot_instagram.Instagram.test_scrap_email in
C:UsersNinoPycharmProjectsInstagram

Error Traceback (most recent call last): File
«C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py»,
line 59, in testPartExecutor
yield File «C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py»,
line 624, in run
self.setUp() File «C:UsersNinoPycharmProjectsInstagrammybot_instagram.py», line 17,
in setUp
self.driver = webdriver.Remote(‘http://localhost:4723/wd/hub’,desired_caps) File
«C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesappiumwebdriverwebdriver.py»,
line 144, in init
proxy File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremotewebdriver.py»,
line 157, in init
self.start_session(capabilities, browser_profile) File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesappiumwebdriverwebdriver.py»,
line 219, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters) File
«C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremotewebdriver.py»,
line 321, in execute
self.error_handler.check_response(response) File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremoteerrorhandler.py»,
line 242, in check_response
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: An unknown
server-side error occurred while processing the command. Original
error: Could not find ‘adb.exe’ in [«C:Program
FilesAndroidplatform-toolsplatform-toolsadb.exe»,»C:Program
FilesAndroidplatform-toolsemulatoradb.exe»,»C:Program
FilesAndroidplatform-toolstoolsadb.exe»,»C:Program
FilesAndroidplatform-toolstoolsbinadb.exe»]. Do you have
Android Build Tools installed at ‘C:Program
FilesAndroidplatform-tools’?

Assertion failed
C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py:656:
ResourceWarning: unclosed
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the
object allocation traceback

Ran 1 test in 2.139s

FAILED (errors=1)

Process finished with exit code 1

Assertion failed

Assertion failed

I am using pycharm. When I run the code I see some error log, but when I run it from cmd, there is nothing.

enter image description here

And here the main part of Appium log:

>     Android >= 6, since UIAutomator1 framework is not maintained anymore by the OS vendor.
>         [Appium] Appium v1.13.0 creating new AndroidDriver (v4.15.1) session
>         [Appium] Capabilities:
>         [Appium]   platformName: Android
>         [Appium]   platformVersion: 6.0
>         [Appium]   deviceName: S6S5IN3G
>         [Appium]   noReset: true
>         [Appium]   appPackage: com.instagram
>         [Appium]   appActivity: com.instagram.android.activity.MainTabActivity
>         [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"Android","... were
> provided
>         [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
>         [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
>         [BaseDriver] Session created with session id: 786ec1a0-280c-4573-a917-18df120f0629
>         [AndroidDriver] Shutting down Android driver
>         [AndroidDriver] Called deleteSession but bootstrap wasn't active
>         [BaseDriver] Event 'newSessionStarted' logged at 1566428435932 (01:00:35 GMT+0200 (Paris, Madrid (heure d’été)))
>         [W3C] Encountered internal error running command: Error: Could not find 'adb.exe' in ["C:\Program
> Files\Android\platform-tools\platform-tools\adb.exe","C:\Program
> Files\Android\platform-tools\emulator\adb.exe","C:\Program
> Files\Android\platform-tools\tools\adb.exe","C:\Program
> Files\Android\platform-tools\tools\bin\adb.exe"]. Do you have
> Android Build Tools installed at 'C:Program
> FilesAndroidplatform-tools'?
>         [W3C]     at ADB. (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulesappium-adblibtoolssystem-calls.js:106:11)
>         [W3C]     at Generator.next ()
>         [W3C]     at asyncGeneratorStep (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modules@babelruntimehelpersasyncToGenerator.js:3:24)
>         [W3C]     at _next (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modules@babelruntimehelpersasyncToGenerator.js:25:9)
>         [W3C]     at run (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmoduleses6.promise.js:75:22)
>         [W3C]     at C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmoduleses6.promise.js:92:30
>         [W3C]     at flush (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmodules_microtask.js:18:9)
>         [W3C]     at process._tickCallback (internal/process/next_tick.js:61:11)
>         [HTTP] <-- POST /wd/hub/session 500 49 ms - 1544
>         [HTTP]

Can anyone suggest me some solutions please?

THank you.

How to fix Could not find ‘adb.exe’?

I think my question is one of the most asked and answered question of the Android world. I read and tried them all.

  • I checked and update my environment variables.
  • I desinstalled and reinstalled ANdroid Studio
  • I copied pasted adb in all possible folders:
    C:UsersNinoAppDataLocalAndroidSdk
    C:Program FilesAndroid
    C:Program FilesAndroidtools
    C:Program FilesAndroidplatform-tools

In fact I spent all the day by searching, reading and testing all the solution possible.

And nothing fixed my problem. So I really need your help.

I am newbie and I want to share my experience. Here is my code:

from appium import webdriver
import unittest

from selenium.webdriver.common.by import By


class Instagram(unittest.TestCase):
    def setUp(self):
        desired_caps = {}
        desired_caps['platformName']='Android'
        desired_caps['platformVersion']='6.0'
        desired_caps['deviceName']='S6S5IN3G'
        desired_caps['noReset']='true'
        desired_caps['appPackage']='com.instagram'
        desired_caps['appActivity']='com.instagram.android.activity.MainTabActivity'

        self.driver = webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
        #self.driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)

    def tearDown(self):
        self.driver.quit()

    def test_scrap_email(self):
        search_button = self.driver.findElement(By.xpath ("//android.widget.ImageView[@bounds='[126,800][162,836]']"))
        search_button.click()



if __name__ == '__main__':
    suite = unittest.Testloader().loadTestsFromTestCase(Instagram)
    unittest.TextTestRunner(verbosity=1).run(suite)

This is the errors:

Testing started at 01:00 …
C:UsersNinoPycharmProjectsInstagramvenvScriptspython.exe
«C:Program FilesJetBrainsPyCharm Community Edition
2019.1.3helperspycharm_jb_unittest_runner.py» —target mybot_instagram.Instagram.test_scrap_email Launching unittests with
arguments python -m unittest
mybot_instagram.Instagram.test_scrap_email in
C:UsersNinoPycharmProjectsInstagram

Error Traceback (most recent call last): File
«C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py»,
line 59, in testPartExecutor
yield File «C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py»,
line 624, in run
self.setUp() File «C:UsersNinoPycharmProjectsInstagrammybot_instagram.py», line 17,
in setUp
self.driver = webdriver.Remote(‘http://localhost:4723/wd/hub’,desired_caps) File
«C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesappiumwebdriverwebdriver.py»,
line 144, in init
proxy File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremotewebdriver.py»,
line 157, in init
self.start_session(capabilities, browser_profile) File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesappiumwebdriverwebdriver.py»,
line 219, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters) File
«C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremotewebdriver.py»,
line 321, in execute
self.error_handler.check_response(response) File «C:UsersNinoPycharmProjectsInstagramvenvlibsite-packagesseleniumwebdriverremoteerrorhandler.py»,
line 242, in check_response
raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: An unknown
server-side error occurred while processing the command. Original
error: Could not find ‘adb.exe’ in [«C:Program
FilesAndroidplatform-toolsplatform-toolsadb.exe»,»C:Program
FilesAndroidplatform-toolsemulatoradb.exe»,»C:Program
FilesAndroidplatform-toolstoolsadb.exe»,»C:Program
FilesAndroidplatform-toolstoolsbinadb.exe»]. Do you have
Android Build Tools installed at ‘C:Program
FilesAndroidplatform-tools’?

Assertion failed
C:UsersNinoAppDataLocalProgramsPythonPython37libunittestcase.py:656:
ResourceWarning: unclosed
outcome.errors.clear() ResourceWarning: Enable tracemalloc to get the
object allocation traceback

Ran 1 test in 2.139s

FAILED (errors=1)

Process finished with exit code 1

Assertion failed

Assertion failed

I am using pycharm. When I run the code I see some error log, but when I run it from cmd, there is nothing.

enter image description here

And here the main part of Appium log:

>     Android >= 6, since UIAutomator1 framework is not maintained anymore by the OS vendor.
>         [Appium] Appium v1.13.0 creating new AndroidDriver (v4.15.1) session
>         [Appium] Capabilities:
>         [Appium]   platformName: Android
>         [Appium]   platformVersion: 6.0
>         [Appium]   deviceName: S6S5IN3G
>         [Appium]   noReset: true
>         [Appium]   appPackage: com.instagram
>         [Appium]   appActivity: com.instagram.android.activity.MainTabActivity
>         [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"Android","... were
> provided
>         [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
>         [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
>         [BaseDriver] Session created with session id: 786ec1a0-280c-4573-a917-18df120f0629
>         [AndroidDriver] Shutting down Android driver
>         [AndroidDriver] Called deleteSession but bootstrap wasn't active
>         [BaseDriver] Event 'newSessionStarted' logged at 1566428435932 (01:00:35 GMT+0200 (Paris, Madrid (heure d’été)))
>         [W3C] Encountered internal error running command: Error: Could not find 'adb.exe' in ["C:\Program
> Files\Android\platform-tools\platform-tools\adb.exe","C:\Program
> Files\Android\platform-tools\emulator\adb.exe","C:\Program
> Files\Android\platform-tools\tools\adb.exe","C:\Program
> Files\Android\platform-tools\tools\bin\adb.exe"]. Do you have
> Android Build Tools installed at 'C:Program
> FilesAndroidplatform-tools'?
>         [W3C]     at ADB. (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulesappium-adblibtoolssystem-calls.js:106:11)
>         [W3C]     at Generator.next ()
>         [W3C]     at asyncGeneratorStep (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modules@babelruntimehelpersasyncToGenerator.js:3:24)
>         [W3C]     at _next (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modules@babelruntimehelpersasyncToGenerator.js:25:9)
>         [W3C]     at run (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmoduleses6.promise.js:75:22)
>         [W3C]     at C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmoduleses6.promise.js:92:30
>         [W3C]     at flush (C:UsersNinoAppDataLocalProgramsAppiumresourcesappnode_modulesappiumnode_modulescore-jsmodules_microtask.js:18:9)
>         [W3C]     at process._tickCallback (internal/process/next_tick.js:61:11)
>         [HTTP] <-- POST /wd/hub/session 500 49 ms - 1544
>         [HTTP]

Can anyone suggest me some solutions please?

THank you.

Назовите меня глупым, но если вы только что прочитали SDK Readme.txt

$ cat SDK Readme.txt
Добро пожаловать в Android SDK!

Архив Android SDK теперь содержит только инструменты. Он больше не поставляется с определенной платформой Android или надстройкой Google. Вместо этого вы используете SDK Manager для установки или обновления компонентов SDK, таких как платформы, инструменты, надстройки и документация.

Чтобы начать разработку приложений, необходимо установить хотя бы одну версию платформы Android с помощью SDK Manager.

Для этого требуется подключение к Интернету, поэтому, если вы планируете использовать SDK в автономном режиме, обязательно загрузите необходимые компоненты в режиме онлайн.

Чтобы запустить SDK Manager, запустите программу tools / android.

Из командной строки вы также можете напрямую запустить обновление, выполнив: tools / android update sdk

Для получения дополнительной информации посетите веб-сайт Android по адресу
http://developer.android.com

Я устал, мне нужно отдохнуть — это истощило меня изо всех сил.

В cmd, когда я пытаюсь выполнить команду:

adb shell

он показывает ошибку, обнаруженную устройством. Может кто-то мне помочь, пожалуйста. Это будет оценено.

4b9b3361

Ответ 1

Не забудьте зайти на свое устройство и включить Настройки- > Параметры разработчика- > Отладка USB.

Ответ 2

Это зависит от системы Windows, но обычно:

  • вы переходите к системным свойствам
  • посмотрите аппаратные устройства
  • Щелкните правой кнопкой мыши значок желтый (должен быть желтым, если проблема с драйвером) значок, представляющий ваше мобильное устройство.
  • выберите свойство
  • Затем перейдите на вкладку драйвера
  • выберите драйвер обновления
  • выберите нижний выбор Найти на локальном компьютере
  • затем выберите вручную
  • В открывшемся окне найдите диск с драйверами в нижней правой кнопке
  • Выберите драйвер из папки <sdk>\extras\google\usb_driver\i386 (или amd64 для и).
  • Не забудьте снять флажок только для совместимого оборудования.
  • Затем выберите драйвер
  • Когда окна предупреждают о возможной несовместимости, продолжайте.

Для моего мобильного телефона он работает, но зависит от вашего мобильного телефона, если он работает или нет.

Надеюсь на эту помощь, пока.

Ответ 3

Попробуйте любое из следующих решений. Время от времени я получаю ошибки с adb.
И одно из следующего всегда работает.

Решение 1
Откройте командную строку с правами администратора и введите
1. «adb kill-server»
2. «adb start-server»

Решение 2
Установите драйверы для телефона, если вы не тестируете эмулятор.

Решение 3
Откройте диспетчер sdk для Android и установите «Google USB Driver» из папки «Дополнительные». (прилагается скриншот)

Отсутствует драйвер USB для Android SDK

Решение 4
Перейдите в настройки > Параметры разработчикa > Включить USB-отладку.
(Если вы не видите «Параметры разработчика», перейдите в «Настройки» > «О телефоне» > Продолжайте нажимать «Построить номер», пока не появится сообщение «Вы разработчик!»

Включить USB-отладку

Ответ 4

Если вы установили Eclipse с Android SDK, перейдите в DDMS. Если устройство списка отображает «?????????»

сделайте adb kill-server, а затем adb start-server.

Пожалуйста, убедитесь, что вы установили драйвер USB и включили режим отладки.

Ответ 5

Другая проблема заключается в том, что вам, вероятно, нужно отключить «connect as media device», чтобы иметь возможность подключаться к adb.

Ответ 6

В моем G2 мне нужно было выбрать PTP вместо режима MTP, чтобы заставить соединение работать.

Ответ 7

Я решил:

Просто отключите USB-отладку и снова включите ее отладку.

Ответ 8

У меня возникла такая проблема, которая внезапно возникла в Windows 7 с помощью Nexus One — некоторые драйверы USB были удалены. Я запустил android-sdk/SDK Manager.exe, проверил Extras/Google USB Driver и установил его. Затем я отключил телефон и подключил его обратно, и запустил «adb devices», чтобы подтвердить, что телефон подключен.

Это не работает для всех телефонов, только те, которые перечислены здесь:
http://developer.android.com/sdk/win-usb.html

Ответ 9

Параметры разработчика

  • Отладка USB

если вы не видите параметр разработчика, перейдите к. построить версию и выбрать версию сборки до тех пор, пока параметры разработчика не будут разблокированы.

Ответ 10

Для меня, я должен Revoke USB debugging authorizations в настройках разработчика. Вот шаги:

  1. Выключите USB Debugging,
  2. Отменить авторизацию отладки через USB,
  3. Подключите кабель обратно,
  4. Включить USB Debugging

Ответ 11

У меня есть Droid 3 (Verizon). Я отправился в Motorola здесь и нашел драйвер для устройства «Интерфейс ADB Motorola», который показывался в диспетчере устройств. Это своего рода большая загрузка только для драйвера, но во время установки она нашла его и установила правильно.

Ответ 12

Просто хотел дать простой ответ. Я просто возился со старым Android-устройством, впервые выполнив эти процедуры root и unlock. Я получил ошибку, подобную этой, когда команда adb push "..." "/sdcard/" завершилась неудачно, и ключ был в том, что мое устройство находилось на экране загрузчика. Затем загрузка на восстановление позволила мне скопировать файлы (файлы), и я полагаю, что нормальная ОС тоже будет.

Ответ 13

Это сработало для меня, мой антивирус AVG удалял мой файл adb.exe. Если у вас есть AVG, попробуйте:
1) открытие программы
2) перейти к вариантам
3) зайдите в хранилище вирусов и нажмите на него
4) найдите свою программу adb, нажмите на нее и нажмите кнопку RESTORE внизу
Это переведет файл обратно в исходное место.
Однако, если вы не отключите AVG, он снова удалит файл.
После того, как эта студия Android разместила файл. Удачи.

Ответ 14

Я нашел свое решение в этой аналогичной теме, включив USB-модем на моем LG G6 (требуется отключение сохранения данных)

Перейдите: Настройки → Модем и усилитель; сети → включить USB-модем

AVG Manager Unable to locate ADB Android Studio on Windows 11/10

The unable to locate ADB error is quite common to encounter while trying to run an app through the Android Studio on Windows 10 or above. The ADB or Android Debug Bridge, as its name suggests, acts as a bridge between you and the various applications installed on your system.

However, due to some reasons that I’ll discuss next, users reported the unable to locate ADB error. If you’re looking for its solutions, you’ve landed in the right place.

Read on as I discuss what causes the above error and offer the top six working solutions for the same.

Reasons of Error “unable to locate ADB”

As aforementioned, the unable to locate ADB error message can be triggered by various reasons, besides your AV removing the ADB.exe file which is stored in the platforms tools folder. Here are the other common reasons that contribute to the above.

  • If no SDK (Software Development Kit) is assigned to the project, it can’t access the ADB file. As a result, you get the error.
  • Your third-party AV removed the ADB.exe file due to false security issues.
  • The relevant Android SDK version is absent on your PC.
  • Damaged or corrupt platform-tools files.

So, these are the common reasons behind the AVG manager unable to locate ADB error message on your Windows 10/11.

AVG Manager Unable to locate ADB Android Studio on Windows 11 10

AVG Manager Unable to locate ADB Android Studio on Windows 11 10

Now that you’ve understood why you’re unable to locate ADB in the Android Studio, let’s work around the following eight solutions to solve it.

  1. Look for the ADB.exe file

As aforementioned, if you can’t find the adb.exe file on your system, the unable to locate ADB error is inevitable. Hence, I recommend checking the file before trying out any other solution.

To check the adb.exe file, follow these steps.

  • Launch the File Explorer on your device.
  • Under Device and drives, click on Local Disk (C:).
  • Next, follow this path: Username > AppData > Local > Android > SDK > Platform-Tools.
  • Inside the Platform Tools folder, look for the adb.exe file.
  1. Use the PC Repair Tool

Since you may have damaged or corrupt ADB files on your system that are contributing to the error, you can also use any PC Repair tool to scan and repair those files.

A PC repair tool is a software application that monitors your system performance and optimizes it to avoid issues going forward. Since there are tons of PC repair tools online, I recommend Restoro.

It’s an easy-to-use tool designed for Windows. And guess what? It has a free trial as well. So, you can check its performance to solve the flutter unable to locate the ADB error message on Windows 10/11.

If the PC repair tool doesn’t work, try the next method.

  1. Check your AV

An antivirus may protect your system from malicious files, programs, applications, and other malware attacks. However, it can also trigger a false positive report for certain files that are not at all dangerous for your system in any way.

As a result, the AV quarantines the files, including the adb.exe file to cause the above error. As a resolution, restore the file from the virus chest. Follow these steps to do so.

  • Go to the taskbar and right-click on the AV icon. You can find it in the taskbar’s right-hand corner.
  • A small menu will open. Click on the Virus Chest (I’ve Avast AV installed on my PC.)
  • On the next screen, click on the Protection option on the left panel.
  • Here, you’ll find the files, programs, and applications that the antivirus suspects as harmful to your device. Look for the adb.exe file.
  • If the file is present there, click on the three horizontal dots next to the file.
  • A small context menu will open. Click on the Restore
  • The adb.exe file will now be restored and ready to use.

Note: Although you’ve restored the adb.exe file for now. The antivirus will again add it to the threat list after scanning it. To avoid this, in the last step, select Restore and add exception from the drop-down menu. Now, the adb.exe file will never appear in the Virus Chest.

  1. Modify the Project Settings

Another common reason for the unable to locate ADB on Android Studio error message is the project settings. By default, the setting is set to No SDK. Due to this, no SDK is assigned to the project, and thus, it can’t locate the ADB.

Follow the given steps to modify the project settings.

  • Launch the Android Studio on your PC.
  • Click on the Project Structure This will open the Project Structure window.
  • On the current window, click on the Project option under the Project Settings section on the left panel.
  • Under Project SDK:, you will find that SDK is set to NO SDK.
  • Click on the downward arrow and select Android API 30 Platform (java version “1.8.0_242”) from the drop-down menu.
  • Once completed, click on OK.

Now, check again whether you’re getting the error message or not. If yes, try installing Android SDK from the SDK manager. It’s discussed below.

  1. Install Android SDK from SDK Manager

If your system lacks the latest version of Android SDK, the unable to locate the ADB error message is inevitable. Thus, I recommend installing the latest version of the Software Development Kit.

Follow these steps to do so.

  • First of all, let’s install the latest version of Android Studio on the system. For this, visit the official website of Android Studio.

install the latest version of Android Studio

install the latest version of Android Studio

  • On the home screen, click on Download options.
  • You’ll be taken to the downloads page. Find the latest .exe file for your system and download it.
  • Once downloaded, install it by following the on-screen instructions.

Now that you’ve installed the latest version of Android Studio, let’s install the latest version of the SDK as well.

  • Launch the Android Studio app on your system.
  • On the landing page, click on More Actions, and select SDK Manager from the drop-down menu.
  • Once you’re on the SDK Manager window, you’ll find three tabs – SDK Platforms, SDK Tools, and SDK Update Sites. Click on SDK Platforms.
  • Find the latest SDK platform for your Android Studio, and install it.
  • Hit the OK

Now, check if the error is gone or not. If it persists, work around the next solution of reinstalling Android SDK Platform Tools.

  1. Reinstall Android SDK Platform Tools files

As the last remedy, I suggest reinstalling Android SDK Platform Tools files as damaged or corrupt files can also be another reason behind the unable to locate ADB error message on Windows 10/11.

Follow the given steps to do so.

  • Close the Android Studio for now.
  • Go to the taskbar and right-click on it.
  • A menu will open. Select Task Manager from it.
  • When the Task Manager window opens, click on the Processes tab, navigate to the exe process, and end it.
  • Launch the Android Studio again.
  • Open the SDK Manager again from the Android Studio. For this, click on the cube-like icon with a downward arrow.
  • On the SDK Manager window, click on the SDK Tools
  • Navigate to the Android SDK Platform-Tools option, uncheck it, and click on OK. This will uninstall the Platform Tools.
  • Once uninstalled, reopen the SDK Manager window, and click on the SDK Tools
  • Navigate to the Android SDK Platform-Tools option, check it, and click on OK.

This way, you’ve reinstalled the Android SDK Platform Tools files.

So, here you go. These were the best tried and tested methods to solve the flutter unable to locate ADB issue.

Conclusion

ADB or Android Debug Bridge is a command-line tool that helps you interact with a device. It is automatically installed on your system along with the Android Studio when you install Android SDK. Sometimes, due to some reasons, the adb.exe file may get damaged, corrupted, or lost.

In such a case, you get the unable to locate ADB error on your Windows system. Several culprits contribute to this and they are discussed above. Further in this article, you get the top 8 solutions to solve.

So, were you able to solve the issue? Let’s know in the comments.

Понравилась статья? Поделить с друзьями:
  • Ошибка не удалось запустить gta 5 exe
  • Ошибка нагрева экструдера
  • Ошибка не удалось записать файл конфигурации
  • Ошибка нагрева стола 3d принтера
  • Ошибка не удалось записать файл qbittorrent