ADB doesn't see my USB-connected device anymore - android

I recently upgraded my (Windows 7) development environment to Eclipse 3.7.1 (Indigo). I have an HTC Magic (Rogers) running Android 2.1upd8.1, a Kobo Vox running 2.3.3 and a Samsung Galaxy Tab 10.1 running 3.1. Only the Galaxy is visible as a USB connected device. [Previously, under helios and Ganymede, I had no problem finding and testing on the HTC! Also, I have no problem executing on any compliant virtual device under the current indigo setup.]
Does anyone have any ideas what the problem might be with the HTC and/or the Kobo Vox?

If you're using Windows, while your device is plugged in:
click Start > Right-click My Computer > Manage
It will open Computer Management.
Click on System Tools > Device Manager.
Expand the Universal Serial Bus controllers node from the center frame.
Identify your android device:
Look for yellow-exclamation-mark icons or a name like Android device/HTC something;
Right-click > Uninstall.
The drivers will be uninstalled and the device will be unrecognised again.
Take out the wire and reconnect it; This time Windows will look for the drivers again (as if it were new) and then it should be installed correctly once again.
The reason it should work in another USB port but not the original one is because the drivers were installed for that port only; if the drivers move, change or go missing it corrupts the installation; but the installation is only remembered on that USB port anyway.

I recently had a problem with my computer detecting my HTC Desire after upgrading. I switched USB ports and now it detects it.
You can also try to update the software on your pc.

Related

Cannot Use Google USB Driver

I have an LG G4 and would like to use it for debugging apps during development. However, I cannot get the device to show up.
I have followed the steps to set the phone into debugging mode.
I have Android Studio and used SDK manager to download the latest SDKs and tools and also installed the Google USB driver.
I cannot see my phone in chrome://inspect nor does it list with "adb devices" nor does it show up in Android Studio.
Sorry that this answer isn't more clear for anyone who stumbles across it, but I wasn't able to pinpoint what fixed it.
I was never able to use the Google USB Driver (so technically, the question isn't really answered)
I was able to install the drivers from LG, but was not able to assign the driver to my device in Device Manager
However, my LG G4 is now working in both Android Studio and chrome://inspect.
The unclear part is that what I did was continuously update Android Studio and throw in a few system restarts. Some items had updates appear after installation which I processed. I also added a few more full SDKs (started with only the latest, 24* at the time of this writing and went back to 21*) At some point during this process, my phone began to work.
I suspect there was a tool or SDK that did the trick and possibly didn't actually fix the issue until I restarted the computer.
If you already used any other android devices for debugging, then the ADB driver is ready to be used for your LG G4. Try following steps.
Connect phone using USB cable
Open device manager >> right click on unidentified LG G4 >> Update Driver Software >> Browse my computer for driver software >> Let me pick from a list of device drivers on my computer >> Install an ADB driver from the list (install anyway)
You need install LG Drivers for your G4. Go to http://www.lg.com/us/support and find yours.
EDIT:
Sometimes it doesn't work in Windows 8 and 10, so you need LG PC Suite.

Visual Studio and Android Device Monitor doesn't detect any devices

I've just installed VS2015 Community with Xamarin to develop some mobile apps. The problem is, I can't achieve debugging Android apps on any device. Android Device Monitor shows empty list. I tried connecting different phones, which I know are detected on my friend's PC. I can explore their files from windows explorer, from there computer sees them.
USB Debugging on the phone is turned on.
USB connection mode is set to camera, no change at all.
I have Google USB driver installed in Android SDK manager.
I tried adb kill-server, adb start-server. Nothing changed. adb devices
shows empty list.
This is device manager while Developers options are disabled on the phone.
And here with enabled Developers options
I also tried updateing driver to google usb driver, but windows said it's up to date.
You most likely did not grant access to the device. Try to go into the developer settings on the smartphone and revoke the USB debugging authorisation. Then connect the phone to the pc and and wait for a popup on the phone which you should accept. After accepting you should see your device with adb devices.
You can also try to set the connection mode to MTP (instead of the camera PTP).
Hope it helps!
Enable the device for development
Goto: Device > Settings > Developer Options > tick USB debugging
Sometimes just restarting Visual Studio might help
Try the this:
1 - Close Visual Studio
2 - connect your device
3 - Restart visual studio with the device already connected by usb (with the device options checked)
This just happened to me. And it seems setting the startup project to your Android project fixed it.
My understanding is that the Google USB Drivers from the Android SDK Manager only work for Google Nexus devices (at least according to https://developer.android.com/studio/run/win-usb.html); annoyingly enough, to use other kinds of devices you'll probably need to download vendor-specific drivers. For example, I definitely had to download Motorola's drivers to use my Droid for debugging purposes. Unfortunately, for whatever reason Windows wasn't able to automatically detect that that's what it needed to download, so I had to download them manually.
I had the same problem, using a Samsung Galaxy A5
Google Drivers Installed
Samsung Drivers Installed
Phone shows up in file explorer
Plugging the phone in while Visual Studio was opened resulted in a pop up asking for permission. After authorising, everything worked perfectly. I didn't have to go into the developer settings on the smartphone and revoke the USB debugging authorisation.
To preface, I had connected my phone (a blackberry which had Android and full Google Play Store access) via Android Studio before so I KNOW it's possible, but when I was trying to do it with Xamarin I was having issues, Visual Studio just wouldn't recognize my device.
Found the problem appears to be the USB cable I was using. When I standardly plug in the USB, blackberry gives me the option to just charge the phone, or to enable File Transferring. But the first cable I was using always just charged the phone and didn't give me options. I tried switching the usb cable and voila, I got the prompt, and I can see the device now in the Start Debugging dropdown. So it looks like there's charge-only usb cables as well as Data cables. Be sure you're using a Data cable else it won't be able to see your Device
I had the same issue after updating Visual Studio found that in recent versions is better if you open VS in administrator mode to properly work, this should fix the problem.
I had previously revoked debug auth on my phone, but my phone didn't prompt me to allow debugging on my PC when I connected it again. Ended-up restarting my LG V30 while connected to my PC and I was prompted to allow debugging.
After that, Visual Studio 2019 version 16.10.0 adds my phone to the device list.
Running on Windows 11. Visual Studio 2022. But, I don't think the versions are really relevant here - included for completeness.
Followed all instructions re enabling USB debugging from the device. Also, the USB Drivers for my Samsung device were successfully installed on the Windows machine.
I was running the Duet Display application as I had previously installed it for use with my iOS devices. This appears to have created a conflict when connecting the Android device, as the prompt related to Duet would appear but not the prompt to allow USB debugging from the computer along with the RSA thumbprint. Once I exited the Duet app from my system tray and reconnected the Android device I got the prompt and it immediately appeared in Visual Studio 2022.
Here's some things I check when having an issue with Android device not appearing:
Enable developer mode on the device from settings
Install (e.g. to windows) the manufacturer's* developer USB drivers for the device
Ensure the Minimum Android Version in the AndroidManifest.xml is lower or equal to your device
And as always, try a different lead and restart both PC and Device!!
*Manufacturer Android USB Development driver links I know of:
Sony | Samsung | Google/Nexus | Blackberry
I have just updated from VS2015 (14.0.25402.00 Update 3) to VS2017 (15.7.5).
Amongst other things, I had to migrate a .forms app from 2.3.x to 3.1.x...
As it (according to MS) now should be possible to install also the Xamarin integration software in parallel to older versions of VS, I first (for security reasons) wanted to leave my “old” .forms app under VS2015 and .forms 2.3x and start to update to .forms 3.x with VS2017.
First, everything looked good - I was able to open my “old” .forms 2.3.x project in VS2015 (what was not possible in the earlier migration from VS2013 to VS2015).
But, I was not able to bring my two dev mobiles (both Samsung Galaxy S7) to work under VS2015 again, although, they were showed to my dev-machine (windows explorer) correct.
After wasting about a full day (doing every suggested workaround, I found on the web), I gave up und started to migrate the .forms project under VS2017.
Under VS2017 both mobiles were showed immediately without any problems and I was able to debug to the device.
So.. it seems, as the installation of VS2017 (with Xamarin integration SW) has “destroyed” something in the VS2015 installation regarding the access to the mobile devices...
I wasn't getting the USB debugging prompt on the device to trust the PC it was connected to and it wasn't appearing in the drop down list of devices in Visual Studio or ADB. Tried many things but installing the USB driver for the device (in my case Sony Xperia XA1 from: https://developer.sony.com/develop/drivers/
After installing this device driver by right-clicking the ADB Interface device in Device Manager and choosing the downloaded driver it showed the prompt to allow the PC and now works fine. This was on Windows 8.1 . I don't remember having to do the same for my Windows 10 PC.
I tried all the options but the only way I got it working is to unplug the USB cable and connect it on a different USB port.
After downloading phone specific drivers and restarting computer / restarting visual studio etc etc. What fixed it for me was from developer options
Disable USB Debugging
Enable USB Debugging
This was on a Samsung Galaxy, looks like although it was saying USB debugging was enabled it was in fact not enabled until I retriggered it using the above method.

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.

How can I start remote debugging on a samsung galaxy tablet?

I have a web app that I need to tweak for Chrome on a tablet. I have a Samsung Galaxy Tab for testing. I'm trying to follow these famous instructions to use developer tools with Chrome for Android. I have downloaded and installed the Samsung USB driver from here, and it has sprayed 25 folders in C:\Program Files\SAMSUNG\USB Drivers. If there are further steps to identify and use the drivers in these folders, I haven't followed them.
My problem is that chrome:inspect is not finding my device. The device manager shows the device properly installed, but the driver tab says it's running a microsoft driver from 2006! All attempts to update the driver finish with "The best driver is already installed." I can browse the device in Windows explorer. What am I missing?
Chrome on my desktop: Version 36.0.1942.0 canary
Chrome on device: Version 34.0.1847.114
Galaxy Tab: GT-P7510
Android Version: 4.0.4
Thanks in advance :-)
For me (developing on windows 8, samsung S4 connected via USB ) chrome://inspect works, but only if I have adb running in the background. This was not mentioned in the documentation last time I checked.
Get android platform tools if you don't already have it. Then, from a command prompt in android-sdk/platform-tools > adb start-server.
You can do this as often as you like, and may need to do it every time you reconnect your phone, or wake your machine.

Android USB Debugging on Samsung Infuse 4G

I am trying to test an Android application through the Eclipse plugin on a real device. It is a Samsung Infuse 4G. I believe I have followed all steps on the Android page for testing on devices.
First of all, I cannot figure out what the Android OS version is because it does not show up in the settings. I can see that the firmware version is 2.2.1, so I assume I am running that version of Android OS as well.
Next, when I connect the device to my computer (running Vista, 64 bit), I get prompted with three options: Kies (firmware update), Media player, and Mass storage. When I look on the Internet, I see that I am supposed to select "Charge only", but this does not appear in the options with which I am prompted. I have already set USB Debugging to true through Settings > Applications > Development.
Third, I have installed the correct driver from the Samsung site based on my model number (SGH-I997), yet when I do adb devices from my platform-tools directory (I have tried adb kill-server and adb start-server), I still do not get my device listed.
I am not very advanced in terms of working with Android and have been banging my head against the wall on how to solve this problem, so any and all help guiding me through this would be appreciated.
Thanks!
Try installing this PC Suite ...Samsung Kies http://www.samsung.com/in/support/usefulsoftware/KIES/JSP this would help you to get the exact driver for the device and don't forget to check USB Debugging option in settings.
You also need to mark "Allow Mock Locations "in Development Options in Applications settings of your phone.
Also try enabling ,use as mass storage after connecting your device.
You can check if your device is detected in device tab of DDMS in Eclipse.
Even trying all such things ,it does not work try connecting your device 2 or 3 times ,restarting eclipse and enabling USB Debugging and mock locations again

Categories

Resources