I connected my Redmi 5A using a USB cable, with developer and USB debugging enabled, but somehow android studio could not detect my device when I click the run icon.
I tried to troubleshoot the issue and the event log showed this:
What is the issue here?
Download and install USB Drivers for your device. Some devices don't work without driver ( like Samsung )
Download here
I am using Redmi 5A for testing purpose. I have faced this problem several time.I just unplugged the usb cables, turn off developer options. Then turn on the developer options again, connect with the USB. Surprisingly it works for me.
When you connect the Device, Android Studio shows a notification on the remote device (here Redmi 5A). If you select Allow Debugging From this computer: COMPUTER KEY, Android Studio will show the device in the list. If not selected, you have to disable USB Debugging and start it again and this is the main problem here in your question (as said in the log)!
Also see that you use USB for transferring files!
Also if you have done this correctly, try staring the adb sever again. Open the terminal window by clicking Terminal on the bottom of Android Studio.
Then type:
adb kill-server
Then type:
adb start-server
I am setting up a Android development environment on a new Windows 10 laptop. I have done this many times on other machines with other operating systems, but this is the first time with Windows 10. The problem is that Android Studio cannot detect my device (LG Zone 3) after I connect it via USB. Note that I have previously used this device for development on an Arch Linux desktop.
I have downloaded Android Studio and created several AVDs. I can run my app and tests on those just fine. However, my hardware device is not listed in the selection dialog.
Here are some things I have tried:
Check that the USB drivers are installed.
Restart ADB from the Android Monitor window in Android Studio
Restart ADB from the command line with adb kill-server and adb start-server.
Quit Android Studio and restart it.
Unplug the device, turn off USB debugging, and turn it back on.
Plug device into a different USB port.
Switch device connection settings to Charge Only and then back to MTP.
What other trouble-shooting steps can I follow to get my device to work?
Depending of your device you might be required to install the phone specific drivers.
Also, sometimes it helps if you go to phone Developer settings and uncheck/disable USB debugging and enable it again.
There are few ways to resolve this problem.
Case 1. Enable the USB debugging option in your mobile.
Setting > developer > Check "USB Debugging"
Case 2. Change from MTP to PTP.(sometimes vise versa works)
Case 3. If nothing worked then try to Install PdaNet+ in your system. This Actually worked for me.
If it solved your issue then answer this question in the comment section > Which case solved your issue? it will help the coming people who are facing the similar problem.
Try this also
1.Just change your cable & give try again
2.Uncheck "Tools" - "Android" - "Enable ADB Integration".
3.Re-Install Google USB drivers
GOTO - http://developer.android.com/sdk/win-usb.html#top
Download the driver
Reinstall it
In my case, an LG device, I just downloaded drivers from the lg site, and it fixed the problem without having to fiddle with any settings.
LG site: http://www.lg.com/us/support/software-firmware-drivers
In my case, I discovered that my device was paired via Bluetooth to my Windows 10 machine. This was preventing it from being listed as a portable device keeping it hidden from Android Studio so make sure the two are not paired.
I want to use Samsung Note Pro for debugging on Windows with Xamarin.Forms,I installed Samsung USB Drivers
from this address and turned on developer mode
but still not work. When I call adb devices my device didn't appear in the list.
(As #Sreeraj's answer stated, installing Kia solves a lot of driver issues under Windows)
Once Developer Mode is enabled:
There is also a separate “Developers Options” section. The difference now is before you get to enable the USB debugging option, you must first enable or turn on “Developer Mode”
Update:
but when I call it gets the device as "unauthorized"
1) To allow app installs from non-Market apps, tap the menu button on your home screen, then choose Settings >> Applications >> Unknown sources.
2) Can't connect Nexus 4 to adb: unauthorized
I too had this problem once. Despite installing drivers from Samsung website, adb could not recognise my device. Then installing Samsung Kies software in my PC helped me. It may work.
After you enable Developer Mode you need to turn on USB Debugging before you connect the device with your PC.
You can also debug without connecting your device via wireless: How can I connect to Android with ADB over TCP?
I am using the OS as Windows 7. In which I want to run my Android app through the Eclipse.
so I connect my android device to my laptop through USB connector. In my device shown as " USB connected ", but when I click the run configuration to select the device, the device id never shown/displayed. and I was tried in the CMD prompt mode, by Killing and start ADB server, but it never worked. Could you anyone provide the solution.
First make sure that USB debugging is enabled. To do that go to your phone and find "Developer Options", for me it is Settings->System->Developer Options. If the device doesn't show up in Eclipse after that, make sure the ADB is running, and that it can recognize your device.
If a device doesn't appear in the list when you use a command like "adb list", probably there is some issue with device drivers.
But if you think device drivers are installed .. just try restarting the device..
Enable USB debugging in your phone settings: Apps -> Development -> USB Debugging.
In cmd when I try to do the command:
adb shell
it shows device not found error. Can someone help me please. It'll be appreciated.
Don't forget to go to your device and enable Settings->Developer Options->USB debugging.
Try any of the following solutions. I get errors with adb every now and then.
And one of the following always works.
Solution 1
Open command prompt as administrator and enter
adb kill-server
adb start-server
Solution 2
Install drivers for your phone if you're not testing on emulator.
Solution 3
Open android sdk manager and install "Google USB Driver" from extras folder. (attached screenshot)
Android SDK Google USB Driver missing
Solution 4
Go to settings > Developer Options > Enable USB Debugging.
(If you don't see Developer Options, Go to Settings > About Phone > Keep tapping "Build number" until it says "You're a developer!"
Enable USB Debugging
It depends on windows system but usually:
you go to system properties
look at hardware devices
Right click on the yellow (has to be yellow if it's driver problem) icon representing your mobile device
select property
Then go on the driver tab
select update driver
choose the bottom selection find on local computer
then choose manually
From the windows opened look for driver disk the bottom right button
Choose the driver from the folder <sdk>\extras\google\usb_driver\i386 (or amd64 for and).
Remember to uncheck the show only compatible hardware.
Then choose the driver
When windows warn your about possible incompatibility go on.
For my mobile it works, but depend on your mobile if it work or not.
Hope this help, bye.
If you installed Eclipse have Android SDK, go to DDMS. If the list device display "?????????"
you do adb kill-server and then adb start-server.
Please make sure you install USB driver and enable debug mode.
Another issue here is that you likely need to turn off "connect as media device" to be able to connect with adb.
For me, I have to Revoke USB debugging authorizations in Developer Options. Here is the steps:
Turn off USB Debugging,
Revoke USB debugging authorizations,
Plug the cable back in,
Turn on USB Debugging
I solved:
Just turn off USB debugging and re-enable debugging it immediately
On my G2 I had to select PTP instead of MTP mode to get the connection to work.
I had this problem suddenly crop up in Windows 7 with my Nexus One - somehow the USB drivers had been uninstalled. I ran android-sdk/SDK Manager.exe, checked Extras/Google USB Driver and installed it. Then I unplugged the phone and plugged it back in, and ran "adb devices" to confirm the phone was attached.
This doesn't work for all phones, just the ones listed here:
http://developer.android.com/sdk/win-usb.html
Developer options
USB Debug
if you can not see developer option, go to about. build version and click build version until developer options in unlock.
Try changing USB port.
Try restarting adb server.
I have a Droid 3 (Verizon). I went to Motorola here and found the driver for the device 'Motorola ADB Interface' which was showing in device manager. It's kind of a big download for just the driver, but during installation it found it and installed correctly.
I switched to a different USB port and it suddenly got recognized...
How about:
Settings -> System -> Developer options -> Debugging -> turn on toggle for Wireless ADB debugging
or:
Revoke USB debugging authorizations
and try from the scratch.
Just wanted to provide a simple answer here. I am just messing with an old Android device for the first time doing these root and unlock procedures. I received an error like this one when an adb push "..." "/sdcard/" command failed, and the key was that my device was in the bootloader screen. Booting to recovery then allowed me copy over the file(s), and I presume the normal OS would as well.
This worked for me, my AVG anti virus was deleting my adb.exe file. If you have AVG try:
1) opening the program
2) go to options
3) go to the virus vault and click on it
4) find your adb program, click on it, and press RESTORE at the bottom
This will move the file back to its original place.
However, unless you turn off the AVG it will delete the file again.
After this android studio located the file. Good luck.
I found my solution from this similar thread by enabling USB tethering on my LG G6 (requires data saver to be turned off)
Go to: Settings -> Tethering & networks -> switch on USB tethering
For completeness, I've just had a case here I had to change my USB cable. Guess the one I had was for charging only, accursed thing.
On my Sony Xperia XZ1 Compact on Oreo I had to switch USB mode to MIDI to get it working. Only after this my Windows recognised Android ADB, however it couldn't autoinstall driver. I opened Device Manager and installed the Google USB Driver for the ADB.
To solve this problem,
Add adb folder to your windows path (system veriable)
This solves the problem
In my case I needed to swap the ends of the cable connecting my device to the computer...