Emulator The device is not ready waiting 20 seconds

I am using intelliJ IDEA12.1.3 for Android .

I run the hello world application, but when the emulator starts, a message appears on the command line that the device is not ready to wait 20 seconds.

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. 
+6
source share
1 answer

If something goes wrong by running the emulator, you may receive the message “not ready” for the device “forever”. Even if everything is going fine, it may take about five minutes or so to start sometimes, especially after you clear the user data. Kill the attempt to launch or debug (find the red square) and start the emulator from the AVD manager, and then wait for it to go to the main screen before trying to start or debug your application.

Usually I start my work day with Android by running the emulator from the AVD Manager (sometimes I run more than one if I test different devices / versions of Android, etc.), and then leave them all day. If your program does not do something really terrible, starting another debugging session will terminate the old copy and install and start a new one, so there is no reason to start and stop the emulator.

+8
source

Source: https://habr.com/ru/post/949189/


All Articles