Reputation: 129
I am trying to run my android project on android studio 1.2. I have started the developer options on my phone and the USB debugging but my android device is still not detected on the running devices. I have tried the invalidate cache/restart but still doesn't work, kindly help.
Upvotes: 4
Views: 23971
Reputation: 3442
In my case, enabling USB Debugging
in Developer Options
solved the problem. Make sure to grant required permissions upon reconnecting the phone.
Enabling Developer Options
Phone settings >> About Phone >> Software Information >> tap Build Number repeatedly.
Update:
Sometimes, the phone is not detected even with USB Debugging
on. In this case, tap on Revoke USB debugging authorizations
in Developer options
. Grant the required permissions on reconnecting the phone.
If it's still not being detected, then toggle USB debugging
off and on then grant permissions upon phone reconnection.
Upvotes: 10
Reputation: 41
This worked for me :
Check if adb server is able to detect your device, by typing adb devices
in project terminal.
If it is able to list the device, then Go to mobile`s settings -> developer options -> allow USB debugging. (If it is already allowed, then deselect it and select it again). This simple step worked for me, after trying tons of things.
If the adb devices
command is not able to list the device, then , in android studio -> "Device List Drop Down" -> "Troubleshoot Device Connections" -> Follow the steps. By this step, device should be able to get detected by adb, then repeat step 1 & 2 in order.
Upvotes: 0
Reputation: 1406
Unfortunately, there is no specific solution to this problem. There is one or more than one reason behind this problem. Maybe your cable is broken or USB port is faulty etc. At first, make sure that all of your hardware is working properly
Now connect your phone to PC's USB port via the charging/data cable. If it displays Charging, Photo or File transfer, select the file transfer option.
Now go to the Developer Options and enabled the Developer mode. (Different mobile manufacturer has different settings, try to find where is your's developer settings located. In my case, it is Settings --> Additional Settings --> Developer Option)
After enabling the Developer Option, enable the USB Debugging (*most important)
. If you find Verify Apps Over USB
option or something similar, enable that option also.
Now wait for a few seconds, Your phone will be detected by the Android Studio
Upvotes: 3
Reputation: 21
In my case I installed Platform tools and placed in the Sdk path and I installed all Sdk related to the version of My mobile then it worked for me.
Upvotes: 1
Reputation: 129
I found the problem guys, the adb drivers were not installed, so I downloaded the installer, followed the precise steps on installing my device's drivers and it now works perfectly
Upvotes: 1
Reputation: 927
Update Android Studio. Current version is 2.3.3 Yours is 1.2.
Upvotes: 0
Reputation: 454
The most likely reason you're not see is one of these:
1) The cable is bad, in that case replace it. Try another cable.
2) The drivers aren't installed on your computer. Download them here: https://developer.android.com/studio/run/oem-usb.html
3) Another program (i.e. Samsung Kies) is causing problems, close it.
4) The device is port is faulty, in that case you'll need to replace it
5) The computer usb port is faulty.
6) If its intermittent, try to connect to your phone w/ adb wifi
7) If your phone is rooted you won't need to connect, use wifi adb by default. Use this app: https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&hl=en
Hope it helps
Upvotes: 3