How to speed up Android Emulation?

I’m trying to get started with Android development.

I’m using eclipse on Linux and using a Pentium IV @3.2Gh with 1GB of ram.
I’ve just followed the “hello android” howto, with just one sad result: the virtualization is too slow.

  • “aapt” IOException error=2, No such file or directory" why can't I build my gradle on jenkins?
  • Android M Camera Intent + permission bug?
  • RxJava Async task in Android
  • Gradle: Error: more than one library with package name 'com.google.android.gms'
  • How to _really_ programmatically change primary and accent color in Android Lollipop?
  • How to run a Runnable thread in Android?
  • It seems that launching the virtual machine has to be slow, and it will be slow even if I’ll use a better computer.

    With slow I mean it takes almost 10 minutes to see “hello android” and if I change it to “hello world” it takes an other 10 minutes…

    How can I solve it? Is it possible to make eclipse load again my app in the current and running virtual machine without opening a new one?

    Related posts:

    ActionBarSherlock gives tons of “Call requires API level 11 (current min is 7)” ...
    Create PDU for Android that works with SmsMessage.createFromPdu() (GSM 3gpp)
    How can I get the JSON response of a POST request in a WebView?
    Create a 360 degree, interactive product preview
    Location Manager's requestLocationUpdates called only once
    Launching Intent.ACTION_VIEW intent not working on saved image file
  • Making authenticated POST requests with Spring RestTemplate for Android
  • Android: How to save a preview frame as jpeg image?
  • android getLine1Number() returns empty string
  • is it possible to replace the MediaStore with a test double using robolectric?
  • onClickListener triggers after onLongClickListener
  • Add a search filter on RecyclerView with Cards?
  • 4 Solutions collect form web for “How to speed up Android Emulation?”

    As long as you have a compatible AVD running, it shouldn’t try to create a new emulator instance. When you want to re-deploy your app to the emulator, kill the existing one from the Debug perspective, and hit the debug button on the menu bar. It should install and launch the app in the existing instance.

    Bumping the amount of ram on a honeycomb AVD from 256M to 1GM resulted in huge speedup. It was taking ~1 minute to $ adb install -r foo.apk; now it take 4 seconds. I think the emulator was going into swap!

    In addition to the other answers: Run the emulator (emulator -avd <avd_name> [-<option> [<value>]] ... [-<qemu args>]) with the option -no-boot-anim. This disables the boot animation during emulator startup.

    If you have a virtual machine open when you start your program, it should automatically select it as the VM to install and rerun the application.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.