问题
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!
回答1:
On the OS X the following steps solved my problem:
- Disconnect your Android devices;
- Quit Android Studio;
- Force Quit process 'adb' from the Activity Monitor;
- Start Android Studio.
回答2:
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

回答3:
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.
回答4:
I just had this happen on my Mac Mini and it ended up working (recognizing the Nexus 5) when I plugged the cable into a different USB port on the back...
回答5:
In order to get my application running on a device, I needed to edit the run configuration for the app by going into the Run menu and selecting Edit Configurations.
I selected the configuration that had my app's name and changed the Target Device to USB Device which then allowed me to run the app from a device. Beforehand I was getting similar behavior to what you describe. It is possible yours is an entirely different issue :(
回答6:
I had the same thing happen. As soon as I unplugged my device, the "Waiting for ADB" notification disappeared and it worked. I guess you can't start AS when a device is plugged in.
回答7:
Span said that you should do strange things, but sometimes it works (strange = reinstall, reboot using word 'maybe'). We should understand that it could be, because of some bad settings in OS which had been changed, but you do not remember about it.
But my case was even stranger! :)
Cause Windows do not limit you to have many Firewalls it could be the key! Firewalls might not permit some apps to connect withother, you should check also it.
I described it in: here
Assuming the crash course to start Android Studio:
- disable connection to internet (for security),
- uninstall Android Studio,
- remove .gradle and .AndroidStudio folder from your home directory,
- remove all firewalls right way, reinstall & set them up to allow,
- remove all av's the same as above,
- check Windows internal firewall (or iptables in Linux :) ),
- install Android Studio.
If it do not work and you want to have your OS not reinstalled - make VM with Windows and try. If not work - reinstall system :(
Regards.
回答8:
EDIT: This actually solved my issue so this is the accepted answer. It seems this answer also helps alot of people but it did not work for me.
Here's what I did to finally make it work. No idea which of these steps triggered my working copy as it seemed very random but I will put them in order.
- Uninstall AS
- Remove old path to adb from bash
- Turn off firewall (or at least monitor which connections are being made by AS and various USB drivers and allow them)
- Install AS
- Change target device under Run -> Edit configurations
- Launch
- It works...maybe! ... ...
- Change theme
- Reboot
- Doesn't work
- Unplug and plug in device
- Should work, if not try rebooting and unplugging/plugging until it does.
来源:https://stackoverflow.com/questions/16648911/android-studio-cant-connect-through-adb-on-osx