Unable to connect debugger to Jelly Bean Galaxy Nexus - android

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?

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

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.

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.

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:
http://www.android.com/filetransfer/

I have been having issues trying to get IntelliJ to recognize my nexus 7 ever since I installed it. I was about to go back to windows 7 until I found #eyal-lezmy suggestion. 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. Also windows detected the device just that IntteliJ would not.

Related

Android Studio 3.0.1 does not find device

After I updted Android Studio to 3.0.1 my device was not found anymore (it worked perfectly before).
What I already tryed:
switching usb port and cable (should not be the problem anyway since it worked before)
turn my phone to PTP and back
checking if google usb drivers are installed in sdk
I dont know how I can get it back to work and I dont know if it might be a bug of Android Studio becuase everything worked before.
My Device - OnePlus 3T
My OS on desktop - Windows 10
I hope somebody can help me here.
Thanks!
install Universal ADB Driver
and configure your device with this tool first and then your device will be found by android studio

connecting a tablet to android studio on windows 7

I am new to android studio and have been having trouble connecting my tablet to android studio so i can test my apps. My tablet is an filemate x2 that runs on android 4.4.2 and i've changed android studio to 4.4.2 from 6.0 . My computer im using is too old so i cant run a virtual machine because of multiple issues(intel HAXM, etc) but i run on windows 7. Its an off brand tablet and i tried to find the OEM driver and thought i found something like it on Wintec(filemate's company) website but it didnt work. anyone have any ideas?
Many times it will not recognize the device and because of driver issues, the device won't show up.
go to settings -> control panel -> hardware and sound -> device manager
check for any devices showing an error. Many androids will show as an unknown USB device.
try to update the drivers for it.
Hope this helps.

Android Studio wont recognize Nexus 7 as device

I am having trouble running an app I am developing in Android Studio on my Nexus 7. I have successfully gotten this to work before using the same tablet and computer (running Windows 8), but since having my laptop repaired and everything wiped I'm convinced something with my dev environment is messed up.
When I go to run the project, there are no available devices, so it is not recognizing my Nexus 7 anymore.
Things I have tried
making sure my computer recognizes the device and that I have the Nexus 7 driver installed from ASUS
going to the SDK manager and ensuring I have the Google USB driver installed
closing Android Studio and re opening it, restarting my computer, restarting my Nexus 7
killing adb.exe from the task manager
ensuring I have USB debugging enabled and toggling that on and off
switching from MTP to PTP and back again (currently connected as MTP, not sure if that is correct)
Any help would be greatly appreciated. This is very frustrating and I would like to just get back to developing again.
Update- I just noticed that when I go to developer options, "Wait for debugger" (near where you toggle USB Debugging) is grayed out. I think this has something to do with it but I'm not sure how to enable it.
I got it!
This was at least the issue in my case, I hope maybe this will help someone someday, apparently I had not installed the adb driver properly:
Search for Device Manager from the search bar on the start screen
Open Device manager, click on your Android device
Select"Update Driver Software"
BOOM. Now Android Studio recognizes the device.
I know this may not be the solution for everyone, but its worth a shot if you are having trouble testing apps on your device.
Between upgrading my second-gen Nexus 7 to Android 5.0.x and Android Studio leaving beta I lost the ability to debug on my tablet.
To get this working again I used a combination of the above advice.
I grabbed a copy of the USB Driver from Asus, but updating the Device in Device Manager and pointing to the unzipped files wasn't enough.
The next step was to point Device Manager to the Android Studio sdk directory (on a 64-bit Windows 8 install that was C:\Program Files (x86)\Android\sdk - beta versions of Android Studio - or %localappdata%\Android\sdk - switched to in 1.x) and then things worked just fine again.
Another possible reason that you may not be able to connect is:
Don't forget to enable debugging mode in Android setting.
I have had the same problem, although just getting started with my Nexus 5 and windows 7. I installed google usb driver package using SDK manager first, computer recognized phone but studio could not find it. Went in to manually update driver for phone but update driver couldnt find it, downloaded driver separately and pointed it to directory path, driver installed then studio found it and ran fine.

Error connecting LG nexus 4 to Eclipse

I am new to Android programming and have been unable to connected my phone to eclipse for debugging and running applications on the go since many days. I have enabled the USB debug mode etc, installed the Google USB drivers and followed all the steps mentioned on the official Google site
http://developer.android.com/tools/device.html
As extra debugging steps for this problem, I tried the Android Debug Monitor tool (monitor.bat) but my phone didnt get recognised in that as well. Also I ensured the my project build SDK version was 19, which i believe is suitable for Android 4.4.4. I used a Moto G(4.4.2) and again I couldnt run apps on it from Eclipse.
But in five minutes by following the same steps I could get the debugging working with Samsung Galaxy duos(android 4.2.2, API 17)
Am I doing something wrong?
OS on PC - Windows 8
Download pda software from pdaorg.co this will surely help you. I was also running with same problem but after installing pda my problem has been sort out.
Try switching your phone's USB computer connection to Camera(PTP) mode. Worked on my side. Hope that helped.

USB Debugging with Samsung Galaxy SII / Eclipse

I was able to debug my Android application on two different computers, but have not done so for some time. Yesday, I attempted to debug my Android application on both of these computers but was not able to.
My device is listed when I use the command "adb devices".
My device is a Samsung S II LTE, but the o/s version has changed. When everything was working it was Android 4.0.3, now it is 4.0.4.
My device does appear in the Eclipse "Android Device Chooser" > "Choose a running Android device", but the "Debug" column is blank, and if I try to debug using that entry, my application is installed into the device and excuted, but not debugged.
Yes, I have explicitly specified "Debuggable" in the application manifest, although it should not actually be required.
I tried installing the latest version of Kies (and the USB drives that come with it).
I tried installing the USB drivers directly from Samsung.
Yes, "Settings" > "Developer options" > "USB debugging" is checked.
However, all of these efforts did not make Eclipse / Samsung Android S II LTE (4.0.4) debugging possible. I also noticed that there is an SDK for Android 4.0.3, but not for Android 4.0.4.
Is my inability to debug my application due to the Android 4.0.4. SDK not being available?
Better yet... is it possible for me to debug my application on my device again and if so, how do I go about it?
Many thanks to anyone that can help me!
Your problem doesn't sound too bad. Make sure you've updated Eclipse and your SDKs/tools. Make sure you've turned your phone off and on.
You should first try debugging a new empty Android project. Does that work?
Can you access logcat through DDMS? If not, can you run and access logcat through the command-line (without going through Eclipse)?
Did you set some breakpoints? From your project, did you right-click on it, and select Debug as Android Application?
Your problem is that windows doesn't recognise your device.
I recommend you to install the right driver for you samsung galaxy SII Or you can install Samsung Kies wich comes with a set of driver that should work for your Android developments.

Categories

Resources