Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Accelerated emulator keeps rebooting

I'm used to test application on both real devices and AVD. Since ICS virtual device was very slow, I decided to try the accelerated emulator. I followed instructions and successfully set up an accelerated virtual machine using Intel Virtualization Technology (x86 system image target).

The emulator works, and it's really fast. BUT at the second app upload/installation, it suddendly reboots. It always works fine at first startup/upload, but when I edit something and test the app again, it reboots "from scratch" (showing android logo).

I'm not using snapshots save/restore. LogCat doesn't report errors, I'm using Android SDK tools Rev.20 and platform-tools rev. 12, on Win7.

Intelhaxm seems to be working properly, reporting "RUNNING" state. After the reboot, I have to upload the app again, that's annoying.

Has anyone encountered the same issue and perhaps solved it?

like image 736
Shine Avatar asked Jun 27 '12 23:06

Shine


People also ask

How much RAM do you need for AVD?

o Depending on your computer specs, the recommended ram size is in the range between 512 MB – 1024 MB. Although you can give more ram to the emulator but an actual android device would normally have 512 MB – 1024 MB for ram only.

What do I do if my Android Emulator is not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why my AVD is not working?

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.

How do I increase RAM on my emulator?

Go to Tools->Android->AVD Manager , there's something like pencil to edit your AVD click on that, then in the pop-up window click Show Advanced Settings and there you can change the RAM size.


1 Answers

The latest version of SDK Tools, Revision 20.0.1, claims to have fixed bugs related to emulators using GPU acceleration. Try it after upgrading to the latest verion of SDK tools and ADT.

From the revision history:

Fixed problems with running more than one emulator and running multiple emulators with GPU acceleration.

like image 56
Dheeraj Vepakomma Avatar answered Oct 07 '22 02:10

Dheeraj Vepakomma