开发者

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:

  1. Open the Android Virtual Device Manager
  2. Select your virtual device and hit the start button
  3. In new window uncheck "launch from snapshot"
  4. 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:

  1. Open Tools -> AVD Manager
  2. Click "Edit" of the device you want to boot
  3. Click "Show Advanced Settings"
  4. Find "Boot option", select "Cold boot"

    Android Emulator Shutdown takes FOREVER


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜