Waiting for Target Device to Come Online

前端 未结 30 2377
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 23:28

I recently updated to Android Studio 2.3, and now when I try to run the application, the emulator does not come online. It times out after 300 seconds.

Additionally,

相关标签:
30条回答
  • 2020-12-01 00:31

    After trying almost all the solutions listed above, what finally worked for me was to create a new virtual device using a "Google APIs" image instead of a "Google Play" image.

    0 讨论(0)
  • 2020-12-01 00:32

    Three days on this, and I believe there's a race condition between adb and the emulator. On a request to run an app, with no emulator already running, you see the "Initializing ADB", then the emulator choice, it starts and you get "Waiting for target to come online". An adb kill-server, or a kill -9, or an "End Process" of adb with the task manager will cause adb to die, restart, your APK installs and you're good to go. It does seem funky to me that an "adb kill-server" causes adb to die and then restart here, but that's another mystery, maybe.

    0 讨论(0)
  • 2020-12-01 00:32

    I am working on notebook, Windows 8. I solved this issue change mode from battery saving mode to balanced mode. Before that, an emulator didn't work and I see "Target Device to Come Online". Also didn't work Genymotion

    0 讨论(0)
  • 2020-12-01 00:33

    I also ran into this problem and probably found the solution that may help. The key is launching the AVD in the emulator first then run your App.

    Following are the steps:

    1. In the Your Virtual Devices screen, select the device you just created and click Launch this AVD in the emulator
    2. Once the emulator is booted up, click the app module in the Project window and then select Run → Run
    3. In the Select Deployment Target window, select the emulator and click OK.
    0 讨论(0)
  • 2020-12-01 00:34

    Go to AVD Manager in your Android Studio.Right Click on your emulator,and then select wipe data.Then run your app again. The emulator will perform a clean boot and then install your apk then your app will finally run.

    Summary:AVD Manager---Right Click Emulator----Wipe Data----Run App Again

    If the problem presists,then simply go back to your avd manager ,uninstall emulator,then add a new emulator.Once the new emulator is added,in your avd manager,run the emulator...Then run your app. Its much simpler if you have an emulator already running from the onset before running your application for the first time

    0 讨论(0)
  • 2020-12-01 00:34

    For Linux users using KVM and facing this problem try setting the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware . As previously mentioned in this answer.

    I can confirm that the method works for Arch Linux, Ubuntu 16.04, as well as windows with or without a proprietary graphics card using Android Studio version 2.3.1+

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