记Android studio “Waiting for target device to come online”

最近刚刚学习Android studio 在运行Android studio期间程序一直可以正常的在虚拟机中运行,但是莫名的再开机运行时,虚拟机可以正常启动,但是程序就是跑不起来,并报错“Waiting for target device to come online”

一、命令行(win+r–cmd)定位到android_sdk/platform-tools/目录下,执行”adb kill-server”

二、在Android studio 中tools——>sdk manager

记Android studio “Waiting for target device to come online”_第1张图片

记Android studio “Waiting for target device to come online”_第2张图片

记Android studio “Waiting for target device to come online”_第3张图片

等待安装完成之后,再次运行:

打开模拟器再次报错且虚拟设备黑屏状态:

记Android studio “Waiting for target device to come online”_第4张图片

解决方法:

记Android studio “Waiting for target device to come online”_第5张图片

记Android studio “Waiting for target device to come online”_第6张图片

关闭后程序运行成功;

尝试了下打开adb服务与关闭adb服务,二者情况下均可正常运行。

参考:

https://blog.csdn.net/jack_windows/article/details/64503132

http://www.bubuko.com/infodetail-2047419.html

https://blog.csdn.net/geekqian/article/details/77367901

你可能感兴趣的:(Android,studio)