Freewind
Freewind

Reputation: 198318

Android deployment is slow, how to improve it?

I'm developing an android application, since there are many assets, the generated apk is near 10M. Now deploying it to a simulator is very slow, often takes me 3 or 4 minutes, which is unacceptable.

I've used Robolectric to test most of the logic, which is very fast. But sometimes I still need to use emulator(e.g. adjust the UI), which waste me a lot of time.

Is there any way to make it fast?

Upvotes: 1

Views: 2035

Answers (4)

s.d
s.d

Reputation: 29436

I've found android-x86 image on VirtualBox many times faster for deployment than an emulator running on same machine, sometimes even faster than a USB device.


EDIT

Please use the android image provided by vmlite, not the one provided by android-x86, and refer to this important question: How to change the screen size of vmlite android?

Upvotes: 1

Ahmad
Ahmad

Reputation: 72603

Well since somebody suggested Android x86 as an alterante testing Emulator, I'll also present my favorite. This might not be an alternative for everyone but for me it's perfect! Use the Bluestacks Player. It runs Android 2.3.4 and is very fluent and fast. Sometimes even faster than a normal device. The only downsize is, that you can just test Apps on the API Level 10 and just on one screen size, but it's perfect just for testing if it's working or not. Just connect the Player with the adb by running

adb connect 127.0.0.1 

After compiling it installs instantly. Very impressive, considering I have a rather average computer hardware(dual core with 4 GB of RAM)

Upvotes: 2

Orabîg
Orabîg

Reputation: 12002

Actually, I absolutly never use the Emulator, which is way too slow in every situations.

I test and debug my apps directly on real devices (and use the ADB screenshot features when I have to pixel-check some screens..)

Hope this helps...

Upvotes: 1

stefan bachert
stefan bachert

Reputation: 9616

This is my experience, too. Debugging with the software emulator is very slow.

It is much faster to use a real device in debug mode. However, you may run in other limitations

Upvotes: 2

Related Questions