Android Emulator Shutdown takes FOREVER
I need to poweroff/poweron emulator to perform test. I get an endless message Shutting Down ... that has been running 30 minutes+ on the emulator. This is totally not working. Is there any way to get emulator to shutdown or at least startup the emulator without an app. I am trying to test app boot on startup, and I cannot get emulator to shutdown. So at least is there a way to start emulator without giving it an app to startup with. BTW, if there is someone who knows about the internals of the emulator on this board would you care to tell us what is going on during this 30+ minutes. I could have processed a gazillion db transactions in this time. This is not slow, not even slothful it is somethi开发者_运维百科ng totally unworkable. Thanks
If you are using Eclipse:
- Open the Android Virtual Device Manager
- Select your virtual device and hit the start button
- In new window uncheck "launch from snapshot"
- Launch
Open Android SDK and AVD Manager > Click the Device you want > Click start button and it will open with no app running.
Generally the Emulator is slow(And with my experience EXTREMELY slow when running honeycomb).
My suggestion would be to stop using the Android emulator and use the Genymotion emulator. It is free and it is faster than testing on a physical device assuming your computer is decent. You can easily start and stop the emulator through VirtualBox.
My solution for this problem is to make sure that I close the AVD Manager and Android Studio windows first before I exit the Android Emulator. Works like a charm for me.
Choose "Cold boot" instead of "Quick boot". If you are using Android Studio:
- Open Tools -> AVD Manager
- Click "Edit" of the device you want to boot
- Click "Show Advanced Settings"
- Find "Boot option", select "Cold boot"
In linux go to terminal and issue the following commands -
cd /home/username/.android/avd/<virtual device name>
sudo rm -rf *.lock
Here, I deleted the lock files from the virtual device directory to force the device to terminate.
Something similar process can be done on Windows and MAC.
精彩评论