Android USB Not Recognized Sometimes - android

Programming on my Android device in Intellij was working fine for a while, then all of a sudden my Android device started not being recognized-- "USB Not Recognized". I have tried re-installing my drivers, restarting my phone, restarting my computer, and setting up a new project but nothing seems to work. My phone is still recognized about half the time, but I randomly get the USB Not Recognized error.

Same. I get this error very often.
This is how I usually fix it:
Use another cable.
Turn Android debugging off and on again.
Reboot the phone.
Use another USB-port.
Use another USB-port with another cable.
Dunno why. Any pro's who can answer this? :)

I just solved my issue with a really weird fix. It turns out that with a lot of wear, the tongue (which is the little prong that is in the middle of where the USB cord goes on the phone) that the connector goes around can get bent. I figured this out because pushing the front end of my connector down on the tongue made the connection work and pushing the connector up made the connection stop. I read somewhere that if you take a knife or a toothpick and push the tongue up gently, the tongue will bend slightly and return to a position where it can form a proper connection, and oddly enough I tried it and it worked. Weird. Hopefully this helps someone. Just don't push too hard up on the tongue and only do this if you're sure you don't have a driver issue.

This works on ubuntu: sudo adb start-server

Settings -> Storage. Click settings dots ‘USB Computer connection’.
Check the ‘Media Device’ (MTP) check box. If already checked, try checking/unchecking it.
This worked for me

I just tried with the USB and it is working now perfectly.
Use your usb pin to push it up by connecting it to the mobile.
connect the cable with your mobile then slightly move it towards UP.
But be carefull while doing that as it may bent it completely.

Related

Android studio never recognizing phone on first try

I'm testing on a Nexus 5, with Android Studio, on a Mac. I used to be able to just plug my phone into my laptop, but lately when I go to run my app, it doesn't detect my phone.
In order to fix this, I have to go into the phone's Developer Options -> Select USB configuration -> toggle between all the modes until one of them works. Before it would just be MTP, but for some reason it seems to be pretty random which one actually does the trick now.
USB debugging is on. I haven't revoked any debugging authorizations... I know this isn't a huge problem, because I can just mess around with it to make it work, but it's super annoying since it does this every time my laptop goes to sleep, close Android studio, or unplug my phone.
I had the same problem, I simply changed the USB cable and then everything was working fine. Hope this helps...

Android debugger continually disconnects

I have never had an issue debugging in Android until I switched to my current workspace. It happens in both Eclipse and IntelliJ. Previously I had an issue where the phone would hang at the "Waiting to attach debugger" dialog. Somehow I fixed that so the debugger at least attaches to my app.
Now I can set a breakpoint and have the debugger stop at that point. After about 5-10 seconds it disconnects no matter what I do. I'm able to read a few values of variables in memory before everything disappears. My co-worker is able to debug the same app just fine using Eclipse and we haven't been able to figure out what is wrong or different between our workstations (besides me using IntelliJ). We might have different images for our laptops though.
Any ideas? I've had to use Log statements for now but they are just too slow compared to using an actual debugger. I've tried using different USB cables and that didn't make much of a difference. I've gone through the debugger settings and nothing seemed out of the ordinary. Other Q/A's on SO have mentioned the app silently crashing, but I'm ruling that out due to it debugging fine for my co-worker.
I've been having the same problem running IntelliJ IDEA build IC-133.193. I solved the problem with the following actions:
Quit IntelliJ
From a command line kill the adb server with adb kill-server
From a command start the adb server as superuser with sudo adb start-server
Restart IntelliJ
IntelliJ will start the adb server if it detects that it is not running. The key appears to be starting adb as superuser before starting IntelliJ.
[Update] This doesn't always work. The best solution I've found is to start the app on the device and then attach the debugger to the Android process through the Run menu. I haven't had any disconnections using this method.
I have been fighting for a few days with adb not seeing my device. After trying many other posted solutions, I discovered that the issue was with Chrome also trying to connect its debugger to a web view. If Chrome is connected using chrome://inspect, then adb seems to disconnect. Quitting Chrome resolves the issue. Then I can connect with Android Studio and then restart Chrome and reconnect. Hope this helps someone else.
This fixed it for me
Go to Power Options on your computer
Click 'Change plan setting' on your chosen plan.
Click 'Change advanced power setting' on your chosen plan.
Expand 'USB Settings' .
Expand 'USB selective suspend setting' and change it to disabled.
This issue occurs to me when I try to use a USB 3.0 port. Using a USB 2.0 it does not happen.
This happens to me when the cable connection is sensitive.

Android device keeps disconnecting from adb / eclipse

So I've read nearly every stack overflow answer about this issue, but still no solution. My device keeps getting disconnected. I've switched through 12 wires, I've tried every USB port; nothing. Eclipse keeps dropping the connection. It happens most often when I enter debug mode. Has anyone found a solution to this? Is this a bug in the new update? Seriously, this makes debugging and testing so painful. It slows down my testing by at least 3 times. There has to be a better solution.
First thing I tend to try is the following commands in cmd/terminal
adb kill-server
adb start-server
And lastly,
adb devices
To check the device is connected.
Following that I'd try restarting the device, and perhaps as a last resort uninstall/reinstall it's drivers.
Edit: also, do you have access to another device? In the past I've had issues with specific devices constantly dropping out.
I experience that when my nexus7 2012 kept disconnecting; root cause was the USB3 connection.
Changing to a USB2 port fixed my issues; can you try switching to a lower speed port?
I was having a very similar problem but using Android Studio on OS X. By default Android Studio points to an SDK inside it's application bundle so I changed the SDK location setting to point to another version of the Android SDK I had downloaded manually and this seems to have fixed the disconnection issues I was having.
Instructions for changing the SDK location setting can be found in this answer.
My connected device (an Acer) was working a treat until I rebooted my mac. After the reboot, Eclipse dropped the connection every single time I ran the app. I tried two cables and every port in my iMac but nothing worked. I had to disconnect and reconnect the device for every run (a real pain when debugging!).
What worked for me was to run the app. When the window appeared to choose the device to run on (which was empty), I disconnected then reconnected the device, but before clicking to run, I checked the box (bottom left) to use this device for each run. It now runs every time directly on the device.
a unpowered usb hub did fix the problem for me. it was happening on both my samsung s6 and my sony z5 premium.and both on my pc and my mac. (using android studio).
Use short usb cable. The shorter the length of cable, the more stable the adb connection. I had the same problem for long time. I changed the cable to shorter one and I haven't got that problem anymore.

Android Tablet device can't connect PC

I have an android tablet "Galaxy Tab 10.1" and need to connect to my pc to debug but it even doesnt show up on Device Manager when I plug the cable. I saw many solutions and tried it, like:
Downloaded samsung usb driver from here:
http://www.samsung.com/us/support/owners/product/GT-P7510MAYXAB
Also in settings USB debugging is enabled.
But there is still no change! Is there any suggestion?? Thanks in advance!
Go to Settings->Select Storage->Click on the three dots->Usb Computer Connection->Experiment with either MTP or Camera. For my phone it works only with Camera mode.
Well, I changed the cable, reinstalled the drivers and worked :)
After you plugged in try to shutdown and then power on the tablet whilst connected. It solved my issue. Hope this helps!!
You could try turning USB debugging off. Also, is there maybe a setting to change the USB mode in settings? Most Android devices have one somewhere.
I've seen this quite a bit, and it seems that happens when the Samsung connector on the bottom of the device is not properly seated. Remove and firmly re-connect has solved the issue a few times for me.
Disconnecting & rebooting the device, run "adb kill-server", reconnect device, run "adb devices" - seems to solve a good few issues also.
Hi There i got a Simple Solution to share.
1st step: Dont connect your android tablet or phone on the computer in this time. :)
2nd step: if your android tablet or phone is on then TURN IT OFF!!
3rd step: NOW after you turn it OFF turn it ON again then connect to the computer Via USB cable..... SEE IF IT WORKS
download Kies and it will automatically download all required drivers - samsung file sync app
read more: http://www.samsung.com/latin_en/support/usefulsoftware/KIES/JSP
download: http://www.samsung.com/us/kies/
Okay Android made this much harder than it needs to be (as usual).
I fought this for two days and finally found a way to turn USB sharing on on the tablet. I loaded the drivers to the computer and it recognized the device but would not read it. The solution was to go to settings, storage and then ignore everything in the storage box. In the top left corner a USB symbol will appear very small next to the sd card logo (if one is mounted) Long Press and drag that down to open a message box. There will be an option to turn on USB sharing.

Best way to effectively disconnect a test device from eclipse

I am new to android development and I have been having problems with disconnecting my smartphone from my ubuntu development platform running Eclipse. When I initially plug my phone in with the usb, the system sees it and all is well. However, if I disconnect it from the system and then plug it back in, the system does not recognize it. I have been rebooting the system everytime it does this. Is there a way to "safely" unplug the phone without having to reboot? Should I close Eclipse? Do I need to "unmount" the phone or is there a way to "restart" the android.rules in the rules.d folder?
Any help would be appreciated.
I had the same issue, and simply turning Usb Debugging off, then back on solved the situation -every time-.
After a while, when I set the default connectivity to Charge only, the problem went away.
These are just workarounds based on my experience, but might help you.

Categories

Resources