Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio doesn't list my phone under "Choose Device"

Just starting out with Android development; have a Nexus 5 bought in Japan, but with English version of android (presumably shouldn't matter). I installed Android Studio on Windows 8.1 to try making an app, but now I don't see my phone under "Choose Device". I've enabled developer mode and selected 'USB debugging'. Is there something else I need to do to get Android Studio to see my connected device?

Choose Device dialog

like image 390
Rollie Avatar asked Aug 10 '14 05:08

Rollie


People also ask

Why is my device not showing in Android Studio?

If your device is not correctly detected in RAD Studio or in the system Device Manager, check the following: Ensure that your Android device is unlocked and not sleeping while connected via USB. Set the appropriate option in Settings or Developer Options. Make sure your Android device is enabled for USB debugging.

How can I see my mobile in Android Studio?

Run the app on your device as follows: In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar. In the toolbar, select the device that you want to run your app on from the target device drop-down menu.

How do I add a target device to my Android phone?

go to "Run>edit configuration>" and select "Open select deployment target dialog" from deployment target option then run your app it will show you a dialog box you can choose your target device from there, enjoy it.

Where is Device Manager in Android Studio?

The Device Manager is an interface you can launch from Android Studio that helps you create and manage AVDs. To open the new Device Manager, do one of the following: From the Android Studio Welcome screen, select More Actions > Virtual Device Manager.


9 Answers

Have you installed drivers for the phone? http://developer.android.com/sdk/win-usb.html

It appears that the the sdk does not "install" the USB drivers. You can select that usb drivers in the sdk to see the file location, open that up, and right click to install the driver yourself.

  • File -> Settings -> Android SDK -> SDK Tools -> Google USB Driver -> Right click -> Install
    • Ensure that Google USB driver is checked.

If above doesn't work, @Abir Hasan appears to have another method in answers below.

like image 197
MeowMeow Avatar answered Sep 29 '22 11:09

MeowMeow


I've had this problem many times before with my Galaxy Nexus. Despite having the Android SDK's USB drivers installed, it did not seem to suffice.

I've always solved this by installing a program called PdaNet. While I don't know exactly what it is used for and where it gets its drivers - it comes with the drivers that has always fixed the problem for me. You can uninstall the program itself once it has finished.

like image 42
John Avatar answered Sep 30 '22 11:09

John


Though the answer is accepted, but I'm going to answer it anyway.

From the points perspective, it might seem that it's a lot of work. But it's very simple. And Up un till now it has worked on all the devices I have tried with.

At first download the universal ADB driver. Then follow the process below:

  1. Install the Universal ADB driver.
  2. Then go to the control panel.
  3. Select Device and Printers.
  4. Then find your device and right click on it.
  5. Probably you will see a yellow exclamation mark. Which means the device doesn't have the correct driver installed.
  6. Next, select the properties of the device. Then-

    • Select hardware tab, and again select properties.
    • Then under general tab select Change Settings.
    • Then under the Driver tab, select update driver.
    • Then select Browse my computer for driver software.
    • Then select Let me pick from a list of device drivers on my computer.
    • Here you will see the list of devices. Select Android devices. Which will show you all the available drivers.
    • Under the model section, you can see a lot of drivers available.
    • You can select your preferred one.
    • Most of the cases the generic ANDROID ADB INTERFACE will do the trick.
    • When you try to install it, it might give you a warning but go ahead and install the driver.
    • And it's done.

Then re-run your app from the android studio. And it will show your device under Choose Device. Cheers!

like image 45
Abir Hasan Avatar answered Oct 01 '22 11:10

Abir Hasan


French screenshot

I hope it will help, it did the trick for me, first, after connected my device to the computer I switch the paramater above to "camera device (PTP)"; then, I install PdaNet on my computer, finally all the usb driver were installed, and it works.
My smartphone is a samsung GS2, Android 4.4.2.

like image 23
Nicolas Avatar answered Oct 01 '22 11:10

Nicolas


I had the same issue and couldn't get my Nexus 6P to show up as an available device until I changed the connection type from "Charging" to "Photo Transfer(PTP)" and installed the Google USB driver while in PTP mode. Installing the driver prior to that while in Charging mode yielded no results.

like image 32
Anson VanDoren Avatar answered Sep 29 '22 11:09

Anson VanDoren


I know this is old and answered, but after 2 weeks of smashing my head on the table I FINALLY fixed my specific issue...

SAMSUNG KNOX was my problem. Version 2.2+ of MyKnox will not allow USB debugging.

I uninstalled MyKnox and now it works.

I hope this saves someone 2 weeks of head smashing.

like image 45
Ryan Avatar answered Oct 02 '22 11:10

Ryan


That worked for my TP-Link Neffos C5:

The first step in configuring a Windows based development system to connect to an Android device using ADB is to install the appropriate USB drivers on the system. In the case of some devices, the Google USB Driver must be installed (a full listing of devices supported by the Google USB driver can be found online at http://developer.android.com/sdk/win-usb.html).

To install this driver, perform the following steps:

  1. Launch Android Studio and open the Android SDK Manager, either by selected Configure -> SDK Manager from the Welcome screen, or using the Tools -> Android -> SDK Manager menu option when working on an existing project.
  2. Scroll down to the Extras section and check the status of the Google USB Driver package to make sure that it is listed as Installed.
  3. If the driver is not installed, select it and click on the Install packages button to initiate the installation.
  4. Once installation is complete, close the Android SDK Manager.

Complete instructions on http://www.techotopia.com/index.php/Testing_Android_Studio_Apps_on_a_Physical_Android_Device (check "Windows ADB Configuration" section).

I basically updated a lot of stuff and then it worked in both Android Studio and Eclipse!

like image 41
Heitor Avatar answered Oct 02 '22 11:10

Heitor


For about 3 weeks, I faced the same problem.

After googling and trying and asking without solutions, I found that there was an Unknown Device called Android Composite ADB Interface in the Device Manager.

I had a look on this and finally resolved it by downloading the ADB Driver from here. (Maybe you need to troubleshoot your PC but the installer will tell you this.)

like image 32
Mindxxxd Avatar answered Sep 30 '22 11:09

Mindxxxd


In my case, android studio selectively doesnt recognize my device for projects with COMPILE AND TARGET SDKVERSION 29 under the app level build.gradle.

I fixed this either by downloading 'sources for android 29' which comes up after clicking the 'show package details' under the sdk manager tab or by reducing the compile and targetsdkversions to 28

like image 43
Oluwasegun Wahaab Avatar answered Sep 29 '22 11:09

Oluwasegun Wahaab