Android 模拟器设备未准备就绪,等待20秒

Android 模拟器设备未准备就绪,等待20秒,android,intellij-idea,Android,Intellij Idea,我正在使用intelliJ IDEA12.1.3来开发Android 我正在运行hello world应用程序,但当emulator启动时,命令行中会显示一条消息,设备尚未就绪,请等待20秒 Uploading file local path: C:\Users\Haseeb\IdeaProjects\untitled\out\production\untitled\untitled.apk remote path: /data/local/tmp/com.example.untitled In

我正在使用intelliJ IDEA12.1.3来开发Android

我正在运行hello world应用程序,但当emulator启动时,命令行中会显示一条消息,设备尚未就绪,请等待20秒

Uploading file
local path: C:\Users\Haseeb\IdeaProjects\untitled\out\production\untitled\untitled.apk
remote path: /data/local/tmp/com.example.untitled
Installing com.example.untitled
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.untitled"
Device is not ready. Waiting for 20 sec.
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.untitled"
Device is not ready. Waiting for 20 sec.
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.untitled"
Device is not ready. Waiting for 20 sec.
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.untitled"
Device is not ready. Waiting for 20 sec.

如果启动仿真器时出现任何问题,您可能会收到设备未就绪消息“永远”。即使一切进展顺利,有时也可能需要五分钟左右的时间来启动——尤其是在擦除用户数据之后。停止运行或调试尝试(查找红色方框),从AVD管理器启动仿真器,然后等待它进入主屏幕,然后再尝试运行或调试应用程序


我通常从AVD管理器启动仿真器开始我的Android工作日(如果我测试不同的设备/Android版本等,有时我会启动多个仿真器),然后让它们整天运行。除非您的程序执行了非常糟糕的操作,否则运行另一个调试会话将杀死旧副本并安装并运行一个新副本,因此没有理由启动和停止仿真器。

您是否在
adb devices
命令输出的
online
状态下看到仿真器?请检查此链接。这对我有用。[在此处输入链接说明][1][1]:PS:快照可以显著缩短启动时间。