Waiting for Target Device to Come Online

前端 未结 30 2403
伪装坚强ぢ
伪装坚强ぢ 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:08

    Did not read all the answers. Anyway Accepted one didn't work for me. What did was upgrading the android studio to last stable version and then created a new virtual device. I guess my nexus 5p virtual device got out of sync with the android studio environment.

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

    None of solutions above worked for me, so I had to wipe content of

    C:\Users\your_name\.android\avd
    

    and re-create emulated device

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

    I've had the same problem (AVD not coming online) in a Linux system. In my case, I have solved it setting this environment variable:

    $ export ANDROID_EMULATOR_USE_SYSTEM_LIBS = 1
    

    This case is documented here: https://developer.android.com/studio/command-line/variables.html#studio_jdk

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

    Check you don't have the deviced unauthorized, unauthorized devices reply the same error in the Android Studio, check the emulator once is on with the adb command.

    $ adb devices

    List of devices attached

    emulator-5554 unauthorized

    If you have of this way the emulator the Android Studio is waiting for be authorized and maybe this can solve the problem.

    Authorized Devices

    This is a error I have solved in Windows 10 with Android Studio 2.3.3

    0 讨论(0)
  • 2020-12-01 00:11
    1. Another case is Android Emulator should be reinstalled. This can happen, when you install a higher version of Android Studio, then update SDK for it, and go back to previous one.

      Tools - Android - SDK Manager - SDK Tools - Android Emulator - uncheck, apply, check, apply

    2. Disable Docker app if you have it (Mac users).

    3. Restart emulator:

      Tools - Android - AVD Manager (or kill adb process in task manager).

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

    Below steps work for me

    1. Close running emulator
    2. Go to AVD Manager
    3. Choose available emulator
    4. In that action tab (last one), click on drop down arrow & select COLD BOOT NOW
    5. Finally run your application
    0 讨论(0)
提交回复
热议问题