Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unbearably slow android emulator -- is there a fix?

I know that the topic was discussed here last year, but I am hoping that someone has since found a fix. The emulator is simply not working for me anymore. It took 15 minutes or so to load hello world a few days ago, and now I can't get it to load a simple MapsDemo from the api samples no matter how long I wait.

I'm using eclipse with the android plugin (sdk and avd manager). My pc is 2.31 GHz quadcore with 8GB ram and windows 7 x64. Nothing is being logged in LogCat apparently.

Are there any alternatives or certain fixes I can try before buying a phone? I'd just upgrade my phone to an HTC Incredible and debug from the phone, but Verizon won't have any for at least a month and I'd really like to have my app out by then.

like image 470
D-Nice Avatar asked Jul 09 '10 06:07

D-Nice


People also ask

Why is my android emulator so slow?

The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.

How much RAM should I give the android emulator?

However, the heap size should not be less than 12 MB. 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.


6 Answers

The best advice I've received is to use to target an older platform and a lower resolution. The emulator for Android 1.5 at HVGA is significantly faster to load than 3.1 at tablet resolution.

If you are running an emulator for a newer Android version, and want to see what it is doing while loading, you can watch on 'adb logcat'. It at least gives some better feedback than the word "Android" with a light shining across it!

like image 132
Rikki Avatar answered Oct 01 '22 06:10

Rikki


Delete all your AVDs & re-install the SDK in a new directory. This should clear out any lurking config settings or AVD based issues which could be causing the slowdown.

Also try shutting down any virus/spyware scanner you may have running because you can then see if your AV app is trying to scan the AVD and or SD card images which could slow things down.

(btw, I'm running the emulator on a Quad Core Q6600 with 4gb RAM & Win 7 x64 and it starts in less than 1 min, so I doubt it's a compatibility issue).

like image 22
Al Sutton Avatar answered Oct 01 '22 04:10

Al Sutton


I usually start it then after I see the "ANDROID" screen close it and restart it and it works and starts up a lot faster the second time.

like image 23
WeldFire Avatar answered Oct 01 '22 05:10

WeldFire


I have started using ubuntu v11 (with dual boot) ,emulator is now starting within 40sec and working without any errors ,which i have encountered in windows 7 and performance is also good.

like image 34
Balaji Avatar answered Oct 01 '22 04:10

Balaji


I just had the very same problem today, after I received the advise, to create a 400MiB SD Card on my AVD. I did so, but nothing worked anymore. I waited half an hour for my App to compile, but nothing happened even though the LogCat was still runníng ... So I came in here to find a solution and I did!

Here`s what speeded the whole thing up again:

  1. I went to the AVD Manager (Window > AVD Manager in Eclipse)
  2. Above the AVDs you can see the path where everything is stored that is created by the machine
  3. So I went to that folder of the path and it was filled with previously compiled stuff
  4. So I deleted it and voila, my App is run within a minute again!

P.S. It might be the case, that you won`t find the last folders described in the path, because they are hidden. Just type in that path, and they will be there: The hidden folders looked like this: .android\avd Just type it in manually and erase all that stuff in there.

like image 41
Andy Avatar answered Oct 01 '22 06:10

Andy


Using SDK Manager download and Install Intel x86 Emulator Accelerator(After downloading this SDK Package can find executable file at path "SDK_LOCATION"\extras\intel\Hardware_Accelerated_Execution_Manager Install it) and also Intel x86 Atom System Image packages. enter image description here

enter image description here

Then create a new AVD with CPU/ABI as Intel Atom(x86), and Check Use GPU Host. Done! enter image description here

like image 34
Favas Kv Avatar answered Oct 01 '22 05:10

Favas Kv