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

查看:28
本文介绍了Android Studio 无法通过 OSX 上的 ADB 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在 OSX 10.7.5 上使用 Android Studio,它看起来非常有前途.然而,我在尝试在我的设备上启动应用程序时遇到了问题.

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.

点击运行按钮时,AS声称在等待ADB".过了一会儿,它超时并说亚行没有响应......".

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-killserveradb-startserver 重新启动和重新启动 adb,但它无法连接.当运行 adb devices 或通过 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 中删除到 adb 的旧路径
  3. 关闭防火墙(或至少监控 AS 和各种 USB 驱动程序正在建立哪些连接并允许它们)
  4. 安装AS
  5. 在运行下更改目标设备 -> 编辑配置
  6. 启动
  7. 它有效......也许吧!......
  8. 更改主题
  9. 重启
  10. 不起作用
  11. 拔下并插入设备
  12. 应该可以,如果不行,请尝试重新启动并拔掉/插上电源,直到成功为止.

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

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