Android Studio: “Waiting for device.” Trying to ru

2019-02-02 03:10发布

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 to run the app from a USB device instead of the emulator. Now when I run my app with my phone plugged in, all I get is a message that says "Waiting for device."

Has anyone else tried out Android Studio and got an app running on their phone? I'd appreciate any advice. I've been trying for quite a while now.

10条回答
叛逆
2楼-- · 2019-02-02 04:06

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.

查看更多
贪生不怕死
3楼-- · 2019-02-02 04:07

Solved it after switching to another USB cable.

查看更多
混吃等死
4楼-- · 2019-02-02 04:08

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

查看更多
家丑人穷心不美
5楼-- · 2019-02-02 04:11

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

查看更多
登录 后发表回答