Android emulator in Eclipse significantly slower - android

I'm having a recent issue since two days ago. Before that I was running the android emulator (API versions 8 y 15) without any significative delay. But since these two days the starting up of the emulator has turn into unbearable time delay, the fifteen API version lasts around two hours, and the eight API version could delay more than 8 hours.
I have tried to reinstall the SDKs, erasing the AVDs without results. I have enabled the snapshot option, but the mentioned delay keeps the work awfully slow.
Thanks in advance.

try to use the following:
emulator.exe -cpu-delay 0 -no-boot-anim -avd avd
or to use gfx acceleration
emulator -avd <avd_name> -gpu on
if that wont work, give http://www.android-x86.org/ a chance ;)
As u already enabled the snapshot option, I dont have to name it again.
Furthermore:
Can I tweak my android emulator to make it fast?
Why is the Android emulator so slow? How can we speed up the Android emulator?
Why is the Android emulator slow?
Why is the Android emulator so slow? How can we speed up the Android emulator?
Unbearably slow android emulator -- is there a fix?

Your startups are taking hours? Something is seriously wrong. I'd check your development machine to see if it is out of disk or fragmented or thrashing. Maybe check that the AVDs aren't declaring too much virtual SD.

It's much faster if you run Android on a virtual machine. You can follow my guide on setting it up, here http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

Related

Emulator low speed in android studio 1.0

I had install android studio 1.0 in two days ago, but when I want run a emulator, I should wait for run more than 10 minutes.(my system is Asus N53sv and my emulator is google_Nexus_API 17 x86).
Now what do am I?
Emulators are slow.
They're bootstrapping the entire mobile device and its components, and you'd require a machine with decent hardware to run one quickly.
Emulators are memory intensive. Android Studio happens to be as well, and if this is your machine, then it's not going to load very fast at all. I'm surprised that it's loading at all!
There's not much you could do outside of upgrading your machine, though.

Android Studio Emulator not starting

Because the emulator was really slow I installed the intel x86 emulator. I changed the settings in my emulator (ARM to intel atom). Now when I run a project it takes me to the emulator selection screen and when I select it, the project starts running, but the emulator doesn't pop up.
I tried switching the cpu back to ARM, but it still doesn't work.
When I close Android studio it asks me if I want to disconnect from the project so I'm sure it is running.
I came across a few posts that said to give the device 768 ram, but that didn't work.
Anyone knows a solution?
I was facing the exact same issue, but for me reducing the device RAM to 768 did fix it. Therefore I'd suggest continuing to decrease the RAM values and trying to launch it.
How about to use Rock speed Emulator - Genymotion?
I know it sometimes take time to launch emulator and launch app in emulator too. But it depends on your configuration of your PC and settings you have done in Eclipse or Android Studio.
For example: You may have kept "Build Automatically" ON and it sometimes slow down running time.
My current rep is not high enough yet to comment on another answer, so I am adding a new "answer" to +1 Paresh Mayani's answer to use Genymotion. I only recently discovered it and found it to be much much faster than the emulator. Instead of emulation it runs an Android rom in a VM using VirtualBox. I've found that it runs full speed on my machine and is just as fast in debug mode as normal mode, which is impressive since even my Nexus 5 struggles when connected to a debugger.
In my case also x86 was creating problem, I installed Android 5.0.1 armeabi-v7a and have set 768MB as RAM size and it worked.
Try to check and run the emulator ie. store a snapshot for faster startup...
I have tried that by checking the button and works fine.
If you're using an AMD machine try using the "ARM EABI v7 system image". For an intel chip use the "APIs Intelx86 Atom system image". Also, try a different tablet from the Android Studio settings e.g(Nexus 6), as the API level might not be supported from in the Nexus5 VM. You will also have a little wait time for the android emulator, mine takes about 7mins

ICS emulator not loading

I'm trying to run the Android emulator with the ICS (Android 4.0) OS but after a 15 minute wait on a fast quad core machine, it's still not doing anything. I understand it's emulating the arm cpu, hence it's slow - but this hasn't even gotten off the loading screen yet! Has anyone managed to get it to run? Any tips?
Try launching without the Launch from snapshot feature
Launching some of my AVD's from command line with
./emulator -avd ...
Gives
savevm: unable to load section cpu
that may or may not be related to the problem(?), but basically launching without the snapshot starts up the emulator.
This happened after I upgraded to Android SDK to 4.0
My solution is the starting Emulator manually but with Target 2.2., let's say with API level 8, then your project will be easily loaded on Emulator.
I made sure to turn off "Load from Snapshot". And mine will still not load. I am going on about an 1 hour now and still sitting
In my case, I succeeded to get ICS emulator by executing $ emulator-arm -avd your_avd_name whereas launching from eclipse (i.e. going through emulator.exe instead of emulator-arm.exe) fails consistently.

Emulator framerate very slow on 2d game after updating from SDK r7 to SDK r12

I cannot understand if it's a bug of the emulator or what else
Some days ago I updated my Galaxy S from Froyo (2.2.3, I think) to Gingerbread 2.3.4. I was pleased about the improved performances, in particular I noticed the game that I'm developing. While before I had around 30 FPS, with the Gingerbread the FPS was around 45.
So I had a (Bad) idea: Maybe Google guys fixed also the non-excellent performances of the emulator! (I never updated my SDK and related softwares since I Intalled it, it was the r7)
I started my SDK Manager and I started the update to r12. The Manager installed everything, I started Eclipse, then my game on a HVGA 320x480 emulator as usually, and suprise. Only 10 FPS, where just some hours before I had 25-30.
The Android OS on the emulator seems to react like before, And I've noticed That sometimes, when just lanched the game for the first time with the emulator just booted (not from snapshot) the game runs for 1-2 seconds at 25-30, Then drops immediately to 10
So I tried the following:
updating the ADT Plugin for eclipse
reinstalling the SDK r12 with the official installer (in another location)
tried a lot of different Adroid OS targets
running the virtual machine directly from the SDK Manager with Eclipse closed
speeding up my Win7 by stopping all not necessary services, processes and Antivirus
starting the HVGA emulator with the flag "Scale display to real size" (damn, the screen is really small)
Googled a lot
Nothing helped me, everytime the framerate was 10 FPS! It's like the emulator runs a frame limiter on 2d graphics. And on the real phone works great.
Is not a problem related to PC hardware specs, because my pc isn't so bad (dual core E8400 3.0 Ghz, 4GB RAM, Ati radeon 4870 1GB, Win7x64)
Then finally I tried the WVGA 480x800 emulator. And another surprise: 13 fps!
I spent a lot of hours to try to fix this problem, whitout success. And I have not so much time for my game project, so I wonder if:
Is it a "known issue" this decrease of performances though the sdk releases, and should I only do testing on my phone, waiting patiently that Google fix the emulator?
Is it possible to get and reinstall the old versions of sdk/emulator (If I could choose, I would back my r7). I need to test my application on different screen sizes, and so the emulator is not usable.
SOLVED: I found that adding the options:
-no-boot-anim -qemu -icount auto
to the emulator solved the problem!
(eclipse: Run->Run Configurations.. then tab "Target", textBox "Additional Emulator Command Line Options" )

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.
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!
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).
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.
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.
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:
I went to the AVD Manager (Window > AVD Manager in Eclipse)
Above the AVDs you can see the path where everything is stored that is created by the machine
So I went to that folder of the path and it was filled with previously compiled stuff
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.
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.
Then create a new AVD with CPU/ABI as Intel Atom(x86), and Check Use GPU Host. Done!

Categories

Resources