简体   繁体   English

无法将Nexus S连接到我的Mac OS x Lion 10.7进行USB调试

[英]Can't connect Nexus S to my Mac OS x Lion 10.7 for USB Debugging

I tried to connect my Nexus S (Android version 2.3.5) to my macbook pro 10.7 (OSX Lion). 我试图将我的Nexus S(Android版本2.3.5)连接到我的macbook pro 10.7(OSX Lion)。 However, the notification on android phone was just ON and OFF alternative. 但是,Android手机上的通知只是ON和OFF的选择。 I tried this command on my terminal. 我在终端上试过这个命令。

adb usb 
>>error: device not found
adb devices 
>>List of devices attached 
>>[ nothing here ] 

Please help me with this issue. 请帮我解决这个问题。 Thank you! 谢谢!

Make sure you don't have a power-only USB cable. 确保您没有仅供电的USB电缆。 If the phone charges but Mac doesn't think it's there, it's a sure sign. 如果手机充电,但Mac不认为它在那里,这是一个肯定的迹象。

Also, if that does not work, check to see if the device shows up under USB in the System Profiler (included in OS X). 此外,如果不起作用,请检查设备配置文件中是否显示设备(包含在OS X中)。 If it is showing up there, but not in ADB, try adding the USB Vendor ID of the phone to ~/.android/adb_usb.ini 如果它出现在那里,但不在ADB中,请尝试将手机的USB供应商ID添加到〜/ .android / adb_usb.ini

This file can be created if it does not already exist. 如果该文件尚不存在,则可以创建该文件。 The Vendor ID of the Nexus S is 0x18d1. Nexus S的供应商ID为0x18d1。 Please make sure the last line of the file is a Vendor ID, do not leave a blank line at the end. 请确保文件的最后一行是供应商ID,不要在末尾留空行。

It seams that there are some problems with debugging an Android device on OS X (most describe this problem after updating to Lion). 在OS X上调试Android设备时存在一些问题(大多数在更新到Lion后都会描述这个问题)。

There are some threads/discussions which offer a few possible workarounds, see if one of them works for you: 有一些线程/讨论提供了一些可能的解决方法,看看其中一个是否适合您:

Although, this seams to be a problem on Google / Apples site so you can only check if you can work it around. 虽然,这种接缝在Google / Apples网站上存在问题,因此您只能检查是否可以使用它。

I have a similar issue. 我有一个类似的问题。 I can issue commands via ./adb shell like ls, but not push and pull, and when i do ./adb devices, it shows my device id, but when i start an interactive shell, adb devices shows nothing. 我可以通过./adb shell发出命令,比如ls,但不能推送和拉动,当我执行./adb设备时,它会显示我的设备ID,但是当我启动交互式shell时,adb设备什么也没显示。 i can still list files in the interactive shell, but still no push or pull. 我仍然可以在交互式shell中列出文件,但仍然没有推或拉。

I had same problem with my N-06C which is made by NEC and solve by writing code less kext. 我的N-06C遇到了同样的问题,它是由NEC制造的,通过编写代码减去kext来解决。

http://8kpxen.blogspot.com/2011/08/how-to-adb-to-your-android-device-on.html http://8kpxen.blogspot.com/2011/08/how-to-adb-to-your-android-device-on.html

Please read this blog and download kext. 请阅读此博客并下载kext。 Since this kext file is configured for N-06C, please modify for your environment. 由于此kext文件是针对N-06C配置的,因此请根据您的环境进行修改。

This happened to me, checked ADB in Eclipse, and was able to select and push file to device. 这发生在我身上,在Eclipse中检查了ADB,并且能够选择并将文件推送到设备。 Pushed APK and installed. 推APK并安装。

I know, horrible solution but Lion has been a nightmare for most developers. 我知道,可怕的解决方案,但Lion对大多数开发人员来说都是一场噩梦。 Hopefully the updates keep comin! 希望更新能够继续!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM