“waiting for target device to come online” in Andr

2019-01-07 09:38发布

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 but nothing seems to work. After running gradle and showing "waiting for target device to come online" in task bar nothing happens and program doesn't run.

Kindly help


Adding Screenshot:

enter image description here

And:

enter image description here

24条回答
够拽才男人
2楼-- · 2019-01-07 10:23

Try configuring different Android Emulator and using it while running. You current emulator may have some issues. It worked for me.

查看更多
戒情不戒烟
3楼-- · 2019-01-07 10:24

I had to turn off Parallels Desktop and it started working again without reboot.

查看更多
迷人小祖宗
4楼-- · 2019-01-07 10:24

I solved by modifying my configuration on AVD.

1) Go to the AVD Manager

2) Click "Edit this AVD" Button (the pencil icon).

I had no device selected and it showed an error message that I need to select a device for the AVD to work. Once I did that and saved my emulator worked.

查看更多
smile是对你的礼貌
5楼-- · 2019-01-07 10:24
  • first delete your AVD from tools>avd manager
  • close android studio and restart computer
  • open android studio click on run button on toolbar and click on create new virtual device from there

worked for me

查看更多
我想做一个坏孩纸
6楼-- · 2019-01-07 10:25

For me what was happening was the Virtual device never booted.

What fixed this was:

cd ~/.android/avd/<Name of virtual device>/
rm *.img

Then I restarted the virtual device and it came on line.

查看更多
ゆ 、 Hurt°
7楼-- · 2019-01-07 10:25

If none of the previous answers solved your problem, I suggest you to check KVM errors. Even if you did not install KVM it's possible you to get KVM errors when you try to run x86 images. Open a terminal and type dmesg | grep kvm after starting emulator. This way you will be able to see if you get KVM errors.

On my Ubuntu 16.04 machine with Android Studio 2.3.3 installed on it, the problem was about KVM. Android Studio was trying to enable KVM for x86 images. When I try to start the emulator, dmesg showing errors "kvm: enabling virtualization failed." Although ARM images were working fine.

After installing KVM, I was able to run x86 images on emulator without errors.

If this is the problem you are encountering, you might want to checkout KVM installation page.

查看更多
登录 后发表回答