简体   繁体   中英

Adb daemon doesn't start automatically

Since upgrading to Android Studio Bumblebee, the adb demon doesn't start automatically when launching AS. I have to manually start it with adb start-server every time I launch AS in order to run/debug projects. That wasn't the case before the upgrade.

The setting is set to automatically start:

在此处输入图像描述

Is there a way to start it automatically when launching Android Studio?

I don't know a way too but i helped me with a simple batch file. The code of this file is:

C:\Users\ 'user'\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server

start /d "C:\Program Files\Android\Android Studio\bin" studio64.exe

Of course you have to look if the path is the same on your computer. If you save this code in a txt-file and change the ending from ".txt" to ".bat" it should work. At least it does at my computer.

I hope that could help because in my case it works now... Isn't a quite beautiful solution but at least it works.

Thanks to this answer . Resolved by disabling adb mDNS for wireless debugging :

Android Studio > Settings > Build, Execution, Deployment > Debugger > Untick "Enable adb mDNS for wireless debugging"

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM