简体   繁体   中英

Android Studio doesn't show my device in the “Device Chooser” dialog. I don't want to use the emulator

I searched for the answer before asking. They weren't satisfactory.
Environment and what I did so far:

  • My device is Xiaomi Redmi 2. I have enabled USB Debugging in my device.

  • My phone uses a Cyanogen mode with 5.1.1 installed ( Lollipop ) and not 4.4 ( Kit-Kat )

  • It is also connected as a media device as asked in an answer

  • I'm running android studio on Windows 8.1.

    • I don't want to change my OS if that's possible.
  • Minimum level it is set to be API Level 15 so all the devices with ICS will be supported.

Questions:

  • Do I need to install a driver and if yes, what driver do I need to install to make it work?
  • If I need it how do I use it?

  • Where do I get it from?


I have to mention that I am using this site for the first time so I might not know the best way to search.
Any tips on that?

It may just be that the MTP mode isn't supported. Try changing your usb connection to PTP in your device's usb connection settings.

Taken from the Android Studio User Guide .

If you are developing on Windows and would like to connect a device to test your applications, then you need to install the appropriate USB driver.

Find the appropriate driver for your device from the OEM drivers table.

Once you've downloaded your USB driver, follow the instructions to install or upgrade the driver, and whether you're installing for the first time or upgrading an existing driver.

Update your android studio and your android project :

Android Studio > SDK Manager (top right of the ide) > Launch Standalone SDK Manager > uncheck the 'installed' checkbox > make sure you have all the recommended updates, tools and apis installed to your development machine.

  1. Update your android project manifest file (AndroidManifest.xml) on about line 20 usually to match the target SDK version you want to build for :

You have to install ADB USB driver manually

Try the below link

http://visualgdb.com/KB/usbdebug-manual/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM