android emulator doesn't display app

做~自己de王妃 提交于 2019-12-07 04:03:26
dariru

Sorry, I don't have enough points to comment, so I am not sure where this should go but this usually happens to me as well on my first run of the emulator after a reboot.

The emulator doesn't display the app because based on the error Running command "getprop emu.uuid" on emulator-5554... it wasn't able to define a required property in the emulator.

Thus, it wasn't able to proceed to build, deploy and install the application to the emulator.

Assuming that nothing is changed in the www folder, close your emulator and please try the following:

  1. phonegap build android --verbose

Confirm whether the app really does build without error.

  1. phonegap run android --verbose

At this point, you will see what you saw Running command "getprop emu.uuid" on emulator-5554... as it loads the emulator.

If nothing happens after the home screen loads, Ctrl + C to stop it. Then without closing the emulator, enter the following command again.

  1. phonegap run android --verbose

You should not be able to see Running command "getprop emu.uuid" on emulator-5554... instead you should see Running comand "cat /proc/cpuinfo" on emulator-5554...

If it's okay, you should be able to observe through the CLI that the has started to build and install on the emulator.

PS. I recommend that you check either Snapshot or Use Host GPU in the Emulation Options in order to give your emulator a boost. To know which one suits your development, please refer here:

https://android.stackexchange.com/questions/51739/what-is-snapshot-and-use-host-gpu-emulation-options-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!