Unable to connect debugger to Jelly Bean Galaxy Nexus
Solution 1
Oddly enough, opening the Android SDK manager and making sure everything is up to date (it was), and then restarting IDEA fixed this. I can now connect to the Galaxy Nexus.
Solution 2
Latest android seems to hide the developer menu in settings, here's the game you have to play to get it back:
- Settings->About phone
- scroll down to the bottom until you see Build number
- click on Build number 7 times
You are now a developer. Go back to the main settings menu and you'll have the developer menu again
Solution 3
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.
Go to settings > Storage > corner menu > USB computer connection > select "PTP".
I hope this will solve your problem.
Solution 4
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:
Comments
-
Matthew Runo almost 2 years
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.
We set our project to compile using the 4.1 SDK, etc.. no luck. Does anyone know how to get USB debugging working on the new Jelly Bean Galaxy Nexus?
(edit) This is being tried from a Mac running OS X 10.7.4 - so in theory drivers should not be an issue?
-
Benito Bertoli almost 12 yearsAfter you enabled USB Debugging from the device, did the drivers get installed when you plugged it in?
-
dymmeh almost 12 yearsJelly Bean drivers differ from the ICS drivers unfortunately. You'll have to find the appropriate drivers before debugging
-
Matthew Runo almost 12 yearsI'll edit to point out that I'm on a mac, and so drivers shouldn't be an issue?
-
Chris Stratton almost 12 yearsDoes adb devices at the command line show anything? Can you run whatever the osx version of lsusb is, with and without it connected, to find its vid?
-
FabianCook almost 12 yearsCan you use adb to find the device?
-
Matthew Runo almost 12 yearsIt does display I am adb that it's connected, and I can install apps and run logcat... But the debugger will not connect.
-
Chris Stratton almost 12 yearsOkay, that's different than the problem most of us thought you had. Make sure the apk is built as debuggable, and perhaps as an experiment try running the eclipse java debugger (instead) using the newest tools and sdk? If you run DDMS, do you get detailed information within debuggable apk's, or just an overview?
-
Matthew Runo almost 12 yearsThe APK is marked as debuggable, but in DDMS all we see (besides logs) is the device, no process information
-
JT703 almost 12 yearsI'm having this same problem. When trying to launch an app with multiple potential devices, the Android Device Chooser dialog pops up asking which device to run the app on. I see the phone, with the correct target (4.1) and state (Online), but the Debug field does not say "Yes" like the other devices.
-
Matthew Runo almost 12 yearsThat sounds like the exact issue I have, JT703
-
JT703 almost 12 years@Matthew I find it hard to believe that no has done any USB dubbing on Jelly Bean. I feel like we're just missing something. I have a weird feeling it's something in the developer options screen on the phone.
-
kabuko almost 12 years@JT703 FYI, the Debug field of the Device Chooser doesn't have to say "Yes" to be able to debug. I believe that field just indicates whether your firmware is signed with test keys. Most production devices won't say "Yes" in that field.
-
Matthew Runo almost 12 yearsOddly enough, things work just fine with our Jelly Bean Nexus 7...
-
Rene almost 12 yearsI've encounter the problem too. All Mac, Linux adb devices, lsusb and the notification bar says no debug on a GN with JB.
-
-
Lazy Ninja over 11 yearsThanks, no way I could have figured this out. Wish I could +50 for this.
-
M Katz over 10 yearsI have Android 4.1.2 on an Alcatel onetouch and there appears to be a different (newer?) way to activate USB debugging. When you go to Settings->About phone, instead of tapping 7 times on the build number, use the "Advanced settings" choice at the top of the list. This has a setting for turning on USB debugging.