no target device found android studio 2.1.1

后端 未结 14 1895
暖寄归人
暖寄归人 2021-02-04 23:31

i\'m using android studio 2.1.1 in ubuntu 14.04.Now my question is,i want to run the program through my phone without emulator. so i chose the target as usb dev

相关标签:
14条回答
  • 2021-02-05 00:08

    On the phone

    1. Have you enabled Developer Mode?

    2. Have you enabled USB debugging within the Developer Tools menu in settings (this menu doesn't appear unless you've enabled Developer Mode)

    3. Do you have a good and securely connected USB cable?

    In Android Studio

    1. In Edit Run/Debug Configurations, do you have "Target: USB Device"?

    2. It may help to download the latest version of the USB driver for that particular phone.

    It's also helpful to know whether your phone appears as a recognised device at the operating system level. And when in doubt, reboot everything you can think of.

    0 讨论(0)
  • 2021-02-05 00:11

    I have used a different USB cable and it started working. This is weird because the USB cable (which was not detected in android studio) was charging the phone. This made me feel like there was a problem on my Mac.

    However changing the cable worked for me. Just check this option as well if you got stuck with this problem.

    0 讨论(0)
提交回复
热议问题