Android的工作室无法通过ADB连接上OSX [英] Android studio can't connect through ADB on OSX

查看:209
本文介绍了Android的工作室无法通过ADB连接上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.

  1. 卸载AS
  2. 从bash中删除旧的路径,亚行
  3. 关闭防火墙(或者至少其中显示器正在做出AS和各种USB驱动程序的连接,并允许他们)
  4. 在安装AS
  5. 运行下更改目标设备 - >编辑配置
  6. 启动
  7. 在它的工作原理...也许! ... ...
  8. 更改主题
  9. 重启
  10. 在不工作
  11. 在插入或拔出设备
  12. 应该工作,如果不尝试重新启动和拔出/插入,直到它。
  1. Uninstall AS
  2. Remove old path to adb from bash
  3. Turn off firewall (or at least monitor which connections are being made by AS and various USB drivers and allow them)
  4. Install AS
  5. Change target device under Run -> Edit configurations
  6. Launch
  7. It works...maybe! ... ...
  8. Change theme
  9. Reboot
  10. Doesn't work
  11. Unplug and plug in device
  12. Should work, if not try rebooting and unplugging/plugging until it does.

这篇关于Android的工作室无法通过ADB连接上OSX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆