Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio show the dialog "unable to create debug bridge : unable to start adb server: unable to obtain result of 'adb version'"

When I open Android Studio, it shows the dialog below, and my application can't run as debug mode.

Unable to create Debug Brisge. Unable to start adb server. Unable to obtain result of 'adb version'

like image 769
nlulin Avatar asked Nov 06 '15 01:11

nlulin


People also ask

How do I fix an ADB connection error?

In tools menu,Android-> untick enable adb Integration and Then OPEN widows task manager n manually end process adb.exe This also solved my issue as der were multiple adb.exe running. Show activity on this post. Restart the computer. Now, disconnect the device, connect it, Make sure USB debugging Option is enabled.

How do I enable ADB on my emulator?

In Android Studio menu options, select Run->Attach debugger. The emulator and process should be listed.


2 Answers

Find the folder of sdk->platform-tool then run the command adb tcpip 5555.

This should result in the following:

adb tcpip 5555 result

Now restart Android Studio and reconnect the Android Monitor:

Reconnect android monitor

like image 113
刘天益 Avatar answered Sep 17 '22 11:09

刘天益


  1. Stop adb from terminal by calling adb kill-server repeatedly to kill all running unstances of adb.
  2. Disable adb integration at android Studio by unmarking “Enable ADB Integration” (from toolbar -> Tools -> Android -> Enable ADB Integration).
  3. Enable ADB Integration again by marking “Enable ADB Integration”.
  4. Finally run project, so adb will be started automatically and properly.
like image 25
Ayman Mahgoub Avatar answered Sep 20 '22 11:09

Ayman Mahgoub