Android Studio: “Waiting for device.” Trying to run app on phone

前端 未结 10 2105
死守一世寂寞
死守一世寂寞 2020-12-28 14:58

I\'m attempting to transition from Eclipse to Android Studio today. I generated the Gradle build files in Eclipse and imported into Android Studio. I changed my preferences

相关标签:
10条回答
  • 2020-12-28 15:37

    this also help me some times :

    adb kill-server 
    adb start-server
    

    and phone or emulator is reconnected to adb

    0 讨论(0)
  • 2020-12-28 15:37

    Ensure Debug mode is turned on, as well as allowing installations from unknown locations, if the problem continues, unplugging the device, rebooting and plugging the device back in should work

    0 讨论(0)
  • 2020-12-28 15:47

    I have the same problem. I am using Kubuntu and I can get the phone to recognize it, but it is gibberish in the "Device" and "Serial" columns, producing only a NULL and ?????'s. I have tried to use the emulator but even that is buggy. I got the emulator to start only to have it "lose" the phone icon, (without the persistence button checked either) and the camera icon, as well as it saying "could not access the package manager".

    I restarted the program, and all was working fine. It helps to have patience.

    0 讨论(0)
  • 2020-12-28 15:52

    If you have an LG G3

    I've seen a couple of posts about people having issues connecting their LG G3 to adb...major PITA because the solution is very non-intuitive.

    Turns out you need to switch the USB mode to Send Images (PTP). You can find this menu by clicking on the notification item that says "Tap for more USB options" right after plugging your phone in.

    More info: http://forum.xda-developers.com/lg-g3/general/guide-connecting-lg-g3-to-linux-adb-aka-t2821673

    0 讨论(0)
  • 2020-12-28 15:52

    This is to do with the RSA security authentication that happens between your PC and mobile. When you connect your mobile device with USB debugging enabled, you must be getting a popup to authorize the computer to use USB debugging on your device. Just check "Always allow" and things should work smoothly.

    Actual problem is when you connect your device to your PC the first time after enabling the USB debugging, the popup for RSA authentication just disappears after a while. So all you have to do is, disconnect and reconnect the mobile device and set the authorization on popup.

    0 讨论(0)
  • 2020-12-28 15:52

    Solved it after switching to another USB cable.

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