Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio ADB connection error [duplicate]

i got this problem that is annoying me after updating to 1.3 , i fired up Android Studio and got a message saying :

***Unable to establish a connection to adb This usually happens if you have an incompatible version of adb running already. Try reopening Android Studio after killing any existing adb daemons. If this happens repeatedly ,please file a bug at http://b.android.com including the following :

  1. Output of the command 'C:\Users\username\AppData\Local\Android\sdk\platform-tools\adb.exe devices'

2.you Idea.log file (Help |Show log in explorer)***

Whats the solution ,i'm running Win7 32bit

like image 502
Anas Tawtaw Avatar asked Aug 08 '15 00:08

Anas Tawtaw


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.

What is Cannot locate ADB?

As it turns out, the error message appears when Android Studio is not able to locate the ADB.exe file that is located in the platform-tools folder. Unable to Locate ADB. This can happen due to several reasons including when your antivirus software removes the adb.exe file due to a false alarm.


1 Answers

You need to kill the adb process that is running, to do so,

  1. Go to Spotlight search, open Activity Monitor,

  2. Loop for adb under CPU tag,

  3. Now Select it and Force Quit the process.

You can kill adb process through Terminal command too, by simply typing Kill -9 adb

Note: Sometimes When u tried to force close them they kept restarting. Make sure you quit any emulators and disconnect any devices to avoid any mistake.

like image 122
PN10 Avatar answered Oct 12 '22 02:10

PN10