Android studio does not recognize phone - android

I am new to android development and am trying to run a test app on my android phone. But it will not detect my device when I click "run". I have tried to go through the OEM USB driver installation but it always says "Windows has determined that the best driver for this device is already installed. There may be better drivers on Windows Update or on the device manufacturer's website." When I unclick "Include subfolders" it says "The location you specified does not contain any driver package (.INF) files." I have tried other methods through device manager of installing OEM USB driver software, both selecting the directory C:\Users\My name\AppData\Local\Android\Sdk\extras\google\usb_driver and the one where I installed the samsung usb driver. I have been attempting to follow this link: https://developer.android.com/studio/run/oem-usb which is where android studio sent me.

Lets try the most obvious one. Have you enabled usb debugging on your phone yet? When I was starting android this has happened to me. If not enable it through your phone's Settings> Developer Options> Usb Debugging.
If the Developer options is not yet shown, tap the Build Number seven times to show it.
Build number is mostly found on About> Software Information.

You need to enable USB debugging in your device too, refer this link for process https://developer.android.com/studio/debug/dev-options

Related

Huawei Phone not appearing in Android Studio on Windows 10

My Huawei P8 lite smartphone is not appearing in Android Studio on Windows 10. Although internal memory of mobile is appearing and file transfer is possible. Here's things I have tried.
1) Connected my phone to other laptops. It's working fine.
2) Connected other phones to my laptop. They are working fine.
3) Tried multiple data cables.
4) Updated all my drivers using Driver Booster.
5) Installed the latest version of Android Studio.
6) Updated my Windows.
7) Reset my Phone to Factory Defaults.
7) Manually installed ADB and USB drivers for Huawei.
8) Tried to update my USB driver in Device Manager but doesn't get updated that way.
My device is a Huawei Nova 2i phone and I had to face some difficulties to get it listed under available devices. USB debug option was getting disabled automatically and I had to follow below mentioned steps to fix it.
First connect the android device via usb cable and enable the "transfer files" option.
After that enable USB debug in developer option menu.
After the above configurations, my device was listed in target devices.
I suggest you download HiSuite, which is an official management tool.
After connecting device with PC, check "Transfer files" option.
you could enter this setting via swiping down notifications.
I had this problem with my Huawei P9. Then I realized that on device manager, my phone was using the incorrect driver. After I picked the MTP USB DRIVER, it worked.
If you can't connect Huawei phones to Android Studio, You can give it a try.
Follow these simple steps:
First you need to turn on Developer mode. To turn on developer mode go to Settings-> About phone -> click Build number 7 times .You will see a message "You are now a developer".
Next Steps: Find your Developer option. It Should be in System & update -> Developer Options
Turn on USB debugging
Select USB configuration -> Choose Media Transfer Protocol(MTP)
Then you might see a alert about "Allow USB debugging" Click OK.
You are good to go. If these steps doesn't help you, please change your cable.

Android phone is not detected in visual studio 2015

I am developing Xamarin forms app. I am not able to deploy app in nexus 6p( phone is not listed in device list ). Tried below steps, still phone is not detected.
I have installed Google USB Driver using Android SDK manager.
I have downloaded usb driver for nexus 6p and done 'Update driver software'
option in device manager under 'Portable devices' section. Device
gets displayed as 'Nexus 6p' within Portable devices section in
device manager and also seen as local drive( next to C: drive ).
Selected droid project as startup project.
But phone is not listed in visual studio device list. Any help?
Make sure the 'USB DEBUGGING' option in DEVELOPER OPTIONS remains checked on your connected Android Device.
I've lost lots of time because this item would uncheck itself for some reason between reboots/restarts and Enabling/Disabling the DEVELOPER OPTIONS.
If anyone else is still struggling with this in 2017, and your USB debugging is definitely on and it's still not appearing - I managed to fix this by turning developer options OFF then ON again from the device's settings. Also ensure that the USB option is set to:
Charging - Just charge this phone
I couldn't get any other method other than this to work. The device was then immediately detected by Visual Studio 2017 for me.
You ABD interface is not installed on your system, so first install the ABD driver from your local machine using (C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver). 
And check your device is in developer mode.
If all the setting will be good then your visual studio automatically detect your device and you can start to debug your app on your device.
If you have installed VS2017 in parallel to VS2015, you also may have a look here Android devices not showed anymore in VS2015 after installing VS2017

Yotaphone 2 is not visible in Eclipse

The Yotaphone 2 is visible as a USB-device, but not in Eclipse's DDMS "Devices". The development mode is activated on device.
Any hints would be very helpful!
TIA.
There isn't an official USB driver for the YotaPhone 2 on the YotaPhone website. So when the phone is plugged in, and USB Debugging has been enabled, the phone appears in Device Manager (Windows) as "Other Devices > Android", with the usual yellow triangle warning showing unknown driver / device.
Because of this, the phone doesn't appear when you run adb devices from the command prompt because the computer doesn't know it's an Android device, and therefore won't appear in Eclipse.
However, there is a driver on their website for the first generation YotaPhone.
Continue here at your own risk...
I modified the android_usb.inf file from the first generation YotaPhone and added the Hardware Device ID reported in Device Manager to the end of each list of supported devices in the driver file.
Telling Device Manager to use this new modified file, Device Manager then recognised my YotaPhone 2 and started to install the Android drivers found in the catalog and subfolders.
Device Manager now sees my YotaPhone 2 as: "Android USB Devices > Android Composite ADB Interface (Yota Devices USB ID)"
I haven't tested this with Eclipse (as I don't have it installed), but the phone does now appear when running adb devices from the Android SDK Platform Tools folder, and also appears (what I needed it for) in Google Chrome's Inspect Devices for mobile website testing.
I'll add a link to this driver from my Dropbox account.
Please note, this is not an official driver for the YotaPhone 2. This is using the same driver for the first generation YotaPhone. I will not be held responsible if anything happens to your YotaPhone 2!!
Please keep an eye on the YotaPhone website in the hope that an official driver gets released.

Android Programming with eclipse

my android phone is not detecting in pc even though I installed all the necessary drivers and all are up to date, can anyone tell me steps to install device in windows 7. my android phone is HTC one x.(I am running my project in eclipse indigo)
Start SDK manager
Go To Extra
See whether Have you installed Google USB driver if not install this.
Restart Eclipse.
Again Connect Your device with the following steps.
from your device check that whether have you Started USB debugging mode on from
Developer Options
Checked USB debugging with USB. Device should be connected as MTP.
If Developer Option is not available on your device you can enable it by following steps
Go to Settings
About Phone
Tap Build number continue 7 to 8 times (Don't remember exact figure)
You will see the Toast "You are now developer"
Developer Options will be enable now.
Did you enable developer option on your device?
this link might help http://www.developer.com/ws/android/connecting-your-android-device-to-eclipse.html
If the aforementioned answers don't work, there is a workaround with connecting some Android phones where you should connect it 'as a camera' in order for the PC to recognize the device. (It won't detect them otherwise)
Download mobogenie3 setup and connect your device ,mobogenie3 will automatically download your device driver and install it .

My nexus S phone not showing up in Android device choose

I can see my own device under "adb devices" and
having Run Configuration -> Target -> Deployment Target Selection Mode already set to "Manual" (in fact with my IDE, there's no Manual option, for some reason) and
Having my phone set to USB Debugging mode
My app is set to android:debuggable=true
However, I am still not able to see my device in "Android Device Chooser". Can anyone help me out in this? I'm using ADT as my IDE. Thanks in advance
Enable USB Debugging in your cell phone.
go to Windows´s Device Manager and you can see the failed driver message, Right click and select "Update Driver Software", then "Browse my computer for driver software".
Browse to your Google Driver location for example "C:\Program Files (x86)\Android_Jorgesys\sdk\extras\google\usb_driver".
Select "Android Composite ADB Interface" driver and click on Next button, then Install.
Thanks to #SalGad, it's to do with my API version that's different between my phone and project build target. The version I had on my Nexus S phone is 4.1.2 and the one on my project is 4.2
I had a lot of issues with this myself. I know that this question is already answered, but the selected answer didn't work for me. So instead of asking a new question I'll add in what DID work for me. I enabled dev mode on the phone, I tried setting the drivers - but the only drivers it would take were generic storage (or phone) drivers. For me I had to set to enable dev debugging mode on the phone and then the option appeared in my device manager for the ADB composite device.
Hopefully I save someone else the same trouble I had - just enable the USB Debugging Option.

Categories

Resources