简体   繁体   English

无法将调试器连接到Jelly Bean Galaxy Nexus

[英]Unable to connect debugger to Jelly Bean Galaxy Nexus

We have a Jelly Bean Galaxy Nexus from Google IO, and have all the latest updates to the Android SDK installed - but we are unable to use USB Debugging on the device from Intellij IDEA. 我们有来自Google IO的Jelly Bean Galaxy Nexus,并安装了Android SDK的所有最新更新 - 但我们无法在Intellij IDEA的设备上使用USB调试。

We set our project to compile using the 4.1 SDK, etc.. no luck. 我们将项目设置为使用4.1 SDK等编译。没有运气。 Does anyone know how to get USB debugging working on the new Jelly Bean Galaxy Nexus? 有谁知道如何在新的Jelly Bean Galaxy Nexus上进行USB调试?

(edit) This is being tried from a Mac running OS X 10.7.4 - so in theory drivers should not be an issue? (编辑)这是在运行OS X 10.7.4的Mac上尝试的 - 所以理论上驱动程序应该不是问题吗?

Latest android seems to hide the developer menu in settings, here's the game you have to play to get it back: 最新的android似乎隐藏了设置中的开发人员菜单,这是你必须玩的游戏才能找回它:

  1. Settings->About phone 设置 - >关于手机
  2. scroll down to the bottom until you see Build number 向下滚动到底部,直到看到内部版本号
  3. click on Build number 7 times 点击Build号码7次

You are now a developer. 您现在是开发人员。 Go back to the main settings menu and you'll have the developer menu again 返回主设置菜单,您将再次拥有开发人员菜单

I resolved this kind of problem on my Nexus 7 (no problem with my Galaxy Nexus) by changing the usb connection from MTP to PTP. 我通过将USB连接从MTP更改为PTP,解决了我的Nexus 7上的这种问题(我的Galaxy Nexus没问题)。

Go to settings > Storage > corner menu > USB computer connection > select "PTP". 转到设置>存储>角落菜单> USB计算机连接>选择“PTP”。

I hope this will solve your problem. 我希望这能解决你的问题。

Oddly enough, opening the Android SDK manager and making sure everything is up to date (it was), and then restarting IDEA fixed this. 奇怪的是,打开Android SDK管理器并确保所有内容都是最新的(确实如此),然后重新启动IDEA修复此问题。 I can now connect to the Galaxy Nexus. 我现在可以连接到Galaxy Nexus了。

I'm running Mac OS 10.8 and managed to have ADB and the debugger working with the Nexus 7 after installing Google's Filetransfer application: 我正在运行Mac OS 10.8并在安装Google的Filetransfer应用程序后设法让ADB和调试器与Nexus 7配合使用:

http://www.android.com/filetransfer/ http://www.android.com/filetransfer/

I have been having issues trying to get IntelliJ to recognize my nexus 7 ever since I installed it. 自从我安装它以来,我一直在试图让IntelliJ识别我的nexus 7。 I was about to go back to windows 7 until I found @eyal-lezmy suggestion. 我准备回到Windows 7,直到找到@ eyal-lezmy的建议。 Tried it and everything works great. 尝试过,一切都很好。 Mind you I tried getting latest drivers for the laptop and from the Android SDK nothing would work till I changed the connection type from mtp to ptp. 请注意,我尝试获取笔记本电脑的最新驱动程序,在Android SDK中,在将连接类型从mtp更改为ptp之前,没有任何工作可行。 Also windows detected the device just that IntteliJ would not. Windows也检测到设备只是IntteliJ不会。

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

相关问题 Android adb(OSX Lion)无法识别Galaxy Nexus,Jelly Bean - Android adb (OSX Lion) does not recognize Galaxy Nexus, Jelly Bean SearchView专注于Samsung Galaxy Tab(果冻豆) - SearchView Focus on Samsung Galaxy Tab (Jelly Bean) onEditorAction() 中的 null keyevent 和 actionid = 0(Jelly Bean / Nexus 7) - null keyevent and actionid = 0 in onEditorAction() (Jelly Bean / Nexus 7) 无法在Galaxy Nexus中使用手电筒 - Unable to use the flashlight in Galaxy Nexus Android Nexus 7 Jelly Bean:s​​tartPreview / takePicture调用getCameraStereoMode记录错误 - Android Nexus 7 Jelly Bean: startPreview/takePicture calling getCameraStereoMode logs an error 使用Android Jelly Bean的Nexus 7的内存消耗非常高 - Very high memory consumption on Nexus 7 with Android Jelly Bean 无法使用Jelly Bean通过手机上的eclipse进行调试 - Unable to debug via eclipse on phone with Jelly Bean 我无法从Flash发布到我的Samsung Galaxy S3(4.3果冻豆) - I can't publish to my Samsung Galaxy S3 (4.3 jelly bean) from Flash getrotation()在Samsung Galaxy p1000(4.1 Jelly Bean)和Samsung Galaxy Tab 10.1(3.2)上返回不同的值。 - getrotation( ) returns different values on Samsung Galaxy p1000 (4.1 Jelly Bean) and Samsung Galaxy tab 10.1 (3.2) 无法连接到远程调试器 - Unable to connect to remote debugger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM