Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio can't connect through ADB on OSX

I've been working a bit with Android Studio on OSX 10.7.5 and it looks very promising. I've run into a problem when trying to launch an application on my device however.

When clicking the run button, AS claims to be "waiting for ADB". After a while it times out and says that "ADB is not responding...".

I've tried rebooting and restarting adb with adb-killserver and adb-startserver many times but it won't connect. When running adb devices or launching through eclipse, all works fine.

Anyone got ideas, I would be very grateful!

like image 293
span Avatar asked May 20 '13 11:05

span


People also ask

Why is adb not detecting my device?

In most cases, ADB cannot recognize your device because the USB debugging option is turned off on the device. Turning this option on can fix the issue for you and this is pretty easy to do. Enabling USB debugging does not do anything on your device.


3 Answers

On the OS X the following steps solved my problem:

  1. Disconnect your Android devices;
  2. Quit Android Studio;
  3. Force Quit process 'adb' from the Activity Monitor;
  4. Start Android Studio.
like image 133
Hong Duan Avatar answered Oct 19 '22 07:10

Hong Duan


I found the problem when I using the genymotion. At last, I realized the problem is that the adb location is not the same as the android studio. So you should update the adb of your genymotion. The step: Genymotion settings -> ADB -> Use custom Android SDK tools

The setting image

like image 39
David Wei Avatar answered Oct 19 '22 07:10

David Wei


I just had the same problem with Android Studio 0.5.3. I would recommend restarting your computer, if the adb kill-server, adb start-server method doesn't work.

like image 42
mmienko Avatar answered Oct 19 '22 06:10

mmienko