Android adb(OSX Lion)无法识别Galaxy Nexus,Jelly Bean [英] Android adb (OSX Lion) does not recognize Galaxy Nexus, Jelly Bean

查看:113
本文介绍了Android adb(OSX Lion)无法识别Galaxy Nexus,Jelly Bean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在开发我的第一个安装在OSX Lion上的Eclipse应用程序。我想使用我的果冻银河Nexus进行调试,但 Android设备桥(adb )找不到设备:

  ./ adb devices 
*守护程序未运行。现在启动它在港口5037 *
*守护进程成功*
连接的设备列表




  • 手机处于调试模式。

  • 手机可识别为相机(PTP),但不能作为媒体设备(MTP)。无论PTP\MTP设置如何,ADB都无法正常工作。

  • 我已经重新启动了手机和mac。

  • 以下这个建议,我已经安装了 Android文件传输。 ATF识别设备,但没有运气与ADB。



任何想法?



附录:我有报告了一个bug 。解决办法仍然是最受欢迎的!



Sep 5 13:28 UTC - 解决方法#1:Dropbox:我将OSX Eclipse工作区移动到Dropbox并在设备上安装Dropbox。 APK被写入 bin / ,每次成功构建后,我都会从Dropbox应用程序重新安装。



解决方案

我正在回答这个问题,因为我的老板与他的Galaxy Nexus有完全相同的问题,昨天我们终于修复了。他有一个应用程序,EasyTether,阻止他的连接到亚行,它不能在别的地方使用。您可以设置此应用程序,还是可能为您使用ADB?如果Android文件传输工作(它与我的老板EasyTether并行工作),那么你的连接是活动的,所以只要你的设置中启用了USB调试,你应该看到一个连接。以下是一个快速的方法,如果您确实有easytether



BEFORE 之前,请先将手机插入终端

  sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext 

如果这样解决了问题,并且您想要完全删除easytether,您可以使用 rm 命令与 -rf 标志以防止它再次发生...

  sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext 
sudo rm -rf /System/Library/Extensions/EasyTetherUSBEthernet.kext


I've been developing my first android apps on Eclipse installed on OSX Lion. I would like to use my Jelly Beans Galaxy Nexus for debugging, but the Android Device Bridge (adb) can't find the device:

./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached 

  • The phone is in debugging mode.
  • The phone is recognizable as a camera (PTP), but not as a media device (MTP). ADB does not work regardless of PTP\MTP setting.
  • I have restarted noth the phone and the mac
  • Following this advice, I've installed Android File Transfer. The ATF recognizes the device, but no luck with the ADB.

Any ideas?

Addendum: I have reported a bug for this. Workarounds are still most welcome!

Sep 5 13:28 UTC - Workaround #1: Dropbox: I've moved the OSX Eclipse workspace to Dropbox and installed Dropbox on the device. The APK is written to bin/, and I re-install it from the Dropbox app after each successful build.

解决方案

I'm answering this because my boss just had the exact same issue with his Galaxy Nexus, and we finally fixed it yesterday. He had an application, "EasyTether" that was snagging his connection to ADB and it couldn't be used anywhere else. Is it possible that you've setup this application, or a similar one that might be using ADB for you? If "Android File Transfer" works (it was working in parallel with EasyTether for my boss), then your connection is active, so as long as "USB Debugging" is enabled in your settings, you should be seeing a connection. Here's a quick how-to in the event that you do have "easytether"

BEFORE you plug your phone in run the following in terminal

sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext

If that fixes the issue, and you want to remove easytether altogether, you can us the rm command with the -rf flags to keep it from happening again...

sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext
sudo rm -rf /System/Library/Extensions/EasyTetherUSBEthernet.kext

这篇关于Android adb(OSX Lion)无法识别Galaxy Nexus,Jelly Bean的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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