“waiting for target device to come online” in Android Studio 2.3

后端 未结 28 1996
南旧
南旧 2020-12-02 12:27

Recently upgraded to Android Studio from 2.2.3 to 2., running on Win10

Emulator stopped working since then. Tried installing other images(25 rev 4)/upgrading for AVD

相关标签:
28条回答
  • 2020-12-02 12:50

    I deleted all my AVD files and recreated an AVD.

    • (In windows), delete all files in C:\Users\MyName\.android\avd\
    • Android Studio > Tools > AVD Manager > Create Virtual Device ...
    • etc.

    At this point in time I was on Win10, Android Studio 3.1.2

    0 讨论(0)
  • 2020-12-02 12:50

    Setting the system variable ANDROID_SDK_ROOT to the path used by Android studio solved the issue for me:

    • In Android Studio fire up Tools>Android>SDK Manager, navigate to Appearance & behavior>System Settings>Android SDK

    • Copy the path from "Android SDK Location"

    • Add ANDROID_SDK_ROOT to your system variables and assign the path

    • Restart Android Studio

    0 讨论(0)
  • 2020-12-02 12:51

    if you docker is running you should close it.

    0 讨论(0)
  • 2020-12-02 12:51

    I had the same problem ,I was using

    Linux LinuxRobot 4.14.0-kali3-amd64

    and getting this

    host doesn't support requested feature: CPUID.80000001H:ECX.abm

    and this message

    waiting for target device to come online

    Solution Close debugging and current emulator then

    Open Avd Manager ,you will be able to see your device there then click on play button

    Or Try Cold Boot

    Open Android virtual device manager,click on drop button after select cold boot. read this

    0 讨论(0)
  • 2020-12-02 12:52

    After trying Cold Boot and other stuff, I removed Android Emulator from SDK Tools, and then reinstalled. But first, I reinstalled HAXM too, because I recalled that I had an error message when installing by first time.

    To install HAXM I had to disable Hyper-V on Windows 10, basically running:

    bcdedit /set hypervisorlaunchtype off

    like stated here: https://github.com/intel/haxm/issues/105#issuecomment-430484231

    After that, I reinstalled Android Emulator. It's just unchecking the box, applying the change, checking it again and applying the change. But you can follow more detailed steps here: https://www.technipages.com/android-emulator-stuck-waiting-for-target-to-come-online

    After that, I have my AVD running.

    0 讨论(0)
  • 2020-12-02 12:53

    I realized my emulator was actually frozen, despite restarting it and restarting my computer. I just had to wipe data (AVD Manager > right-click on emulator > Wipe Data) and it started working again. You'll lose any state you had, but at least you won't have to reinstall it.

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