Android的工作室无法通过ADB连接上OSX [英] Android studio can't connect through ADB on OSX
问题描述
我已经工作了一点与Android工作室在OSX 10.7.5,它看起来非常有前途。我碰到的努力却以启动一个应用程序我的设备上时出现问题。
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...".
我试图重新启动和重新启动亚行 ADB-killserver
和亚行的startserver
很多次,但它赢得T连接。当运行 ADB设备
或通过Eclipse的启动,一切工作正常。
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!
推荐答案
编辑:这实际上解决了我的问题,所以这是公认的答案。看来这个答案也有助于人很多,但它并没有为我工作。
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.
- 卸载AS
- 从bash中删除旧的路径,亚行
- 关闭防火墙(或者至少其中显示器正在做出AS和各种USB驱动程序的连接,并允许他们)
- 在安装AS
- 运行下更改目标设备 - >编辑配置
- 启动
- 在它的工作原理...也许! ... ...
- 更改主题
- 重启
- 在不工作
- 在插入或拔出设备
- 应该工作,如果不尝试重新启动和拔出/插入,直到它。
- 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.
这篇关于Android的工作室无法通过ADB连接上OSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!