macos Android 设备未显示在 DDMS 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3928779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android device not showing up in DDMS
提问by EightyEight
Running Android 2.2 on a Galaxy S. Host is an OS X 10.6.4 machine. DDMS in Eclipse reports no devices being connected. adb devices
-- nothing.
在 Galaxy S 上运行 Android 2.2。主机是 OS X 10.6.4 机器。Eclipse 中的 DDMS 报告未连接任何设备。adb devices
- 没有什么。
I've tried:
我试过了:
- Rebooting the phone
- Toggling the USB development mode
- Plugging/unplugging the cable
- Restarting the server (
adb kill-server
).
- 重启手机
- 切换USB开发模式
- 插入/拔出电缆
- 重新启动服务器 (
adb kill-server
)。
The weird thing is that sometimes computer will not detect the phone being attached (no growl notification, not syslog entries) and sometimes it will. Other android devices work.
奇怪的是,有时计算机不会检测到正在连接的手机(没有咆哮通知,不是系统日志条目),有时会。其他安卓设备工作。
Do you guys have any ideas what else I could try or is this a lost cause?
你们有什么想法我可以尝试或者这是一个失败的原因吗?
Thanks
谢谢
回答by EightyEight
On recent macbook pros, one port will not work consistently. Tested on 2 different Macbook Pros.
在最近的 macbook 专业版上,一个端口无法始终如一地工作。在 2 台不同的 Macbook Pro 上进行了测试。
回答by DustinB
Had the same issues with colleagues and found that somehow, "USB Debugging" was disabled in the settings, even though it had worked fine just a few days before.
与同事有同样的问题,发现不知何故,“USB 调试”在设置中被禁用,即使它在几天前工作正常。
Just thought I'd mention it because it had us stumped for a bit.
只是想我会提到它,因为它让我们难住了一点。
回答by Ben M
My development device (LG GT540 running Android 2.1, OS X 10.6.8) also mysteriously stopped appearing in "adb devices" today. The only change from yesterday that I recall was logging out of my Mac account (as I typically do at the end of the day) and unplugging the USB cable (which I rarely do not).
我的开发设备(运行 Android 2.1、OS X 10.6.8 的 LG GT540)今天也神秘地停止出现在“adb 设备”中。我记得昨天的唯一变化是退出我的 Mac 帐户(我通常在一天结束时这样做)并拔掉 USB 电缆(我很少这样做)。
I tried the above suggestions, but the device didn't reappear until after:
我尝试了上述建议,但该设备直到以下时间才重新出现:
- Restarting the Mac,
- Performing a factory data reset on the device (Settings > Privacy > Reset),
- Restarting the device in Safe-Mode (hold Home + Hangup buttons while powering on),
- Re-toggling the developer-y settings:
- Enabling USB debugging for development.
- Disabling SD card mass storage only.
- And, finally, restarting the device normally.
- 重新启动Mac,
- 在设备上执行出厂数据重置(设置 > 隐私 > 重置),
- 在安全模式下重新启动设备(开机时按住 Home + Hangup 按钮),
- 重新切换 developer-y 设置:
- 为开发启用 USB 调试。
- 仅禁用 SD 卡大容量存储。
- 最后,正常重启设备。
Who knows what the problem really was, but I can see and deploy to my device again.
谁知道真正的问题是什么,但我可以再次看到并部署到我的设备上。
回答by dudeman
Had to dig for this sucker:
不得不挖掘这个傻瓜:
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
注意:在 Android 4.2 及更高版本上,默认情况下隐藏开发人员选项。要使其可用,请转到“设置”>“关于手机”,然后点击“版本号”七次。返回上一个屏幕以找到开发人员选项。