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

前端 未结 10 2165
死守一世寂寞
死守一世寂寞 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 16:00

    I had same problem and I was able fix that problem.

    My error was:

    Waiting for device. USB device not found

    This happens when I was using SONY XPERIA Tipo Dual and Samsung Galaxy Core Duos i8262.

    I solved problem in both devices.

    SONY XPERIA Tipo Dual

    1. Check whether "USB debugging" is enable or not in Settings->Developer Options
    2. Connect device to PC and run your app. Make sure "Target Device" as "USB Device" in Run/Debug Configurations.
    3. If error was "Waiting for device. USB device not found", Go to "Device Manager" and check your device is categorize as "Other Devices" in yellow color. That means your device is not detected by Windows.
    4. Install "SONY PC Companion" which is automatically detect your driver.

    5. Run your app again. You can see your app is running in your device.

    Samsung Galaxy Core Duos i8262

    1. Check whether "USB debugging" is enable or not in Settings->Developer Options
    2. Connect device to PC and run your app. Make sure "Target Device" as "USB Device" in Run/Debug Configurations.
    3. If error was "Waiting for device. USB device not found", Go to "Device Manager" and check your device is categorize as "Other Devices" in yellow color. That means your device is not detected by Windows.
    4. Install USB drive. You can find it here. Direct Url to download

    5. Run your app again. You can see that still you are getting same error. Go to notification section. You can see that, phone is connected as a media device(Media device(MTP)). You need to change it as "Camera (PTP)" by touching notification.

    6. Run your app again. Wow. It works...

提交回复
热议问题