Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why emulator is very slow in Android Studio?

I just setup Android Studio on my PC, which is new launch to develop Android application.

My problem is that, when I try to run my small app in emulator, it take to much time to launch and after then emulator is working slow too.

AVD settings

AVD Name: Glaxy
Device: Glaxy Nexus (4.65", 720x 1280: xhdpi)
Target: Android 4.2.2 - API Level 17
Memory Option: Ram 500, VM Heap 64
Internal Storage: 200MiB

I have good window pc: Intel Core 2 Duo 2.93Ghz and Ram is 3gb

I am new in Android development and java.

like image 835
Mandy Avatar asked May 24 '13 09:05

Mandy


People also ask

Which Android emulator is fastest for Android Studio?

LDPlayer allows players to run Android APP and Games smoothly on their computers. LDPlayer is the second most popular emulator in the world. It's South East Asia's best and the fastest android emulator within the gaming market. LDPlayer allows players to run their mobile games and app on PC for free.

Why is Android Studio running so slow?

According to Android Studio's official system requirements, it takes at minimum 3 GB RAM to run smoothly. Honestly, its a lot and I believe that is the biggest cause of being it too slow all the time. The android developers are always complaining about the speed of Android Studio and how its slow ALL THE TIME.

Why is my emulator so laggy?

Running multiple programs at once on your PC can cause performance issues. While running Android emulator for playing heavy games, you should always avoid using up the RAM of your computer. This will cause severe lag to your PC. You can close unwanted programs by going to "Task Manager".


2 Answers

The Best Solution is to use Android Emulator with Intel Virtualization Technology.

Now if your system have a Processor that have a feature called as Intel Virtualization Technology, then Intel X86 images will be huge benefit for you. because it supports Intel® Hardware Accelerated Execution Manager (Intel® HAXM).

To check that your processor support HAXM or not : Click Here

You need to manually install the Intel HAXM in your system. Follow these steps for that.

  • First of all go to - adt -> extras -> intel -> Hardware_Accelerated_Execution_Manager
  • Make sure that Intel Virtualization is enabled from BIOS Settings.
  • Now install Intel HAXM in your system and select amount of memory(i prefer to set it as default value).
  • After installation create new Android Virtual Device (AVD) which should have a Target of API Level xx
  • Now set the CPU/ABI as Intel Atom(x86).
  • If you are on Windows then do not set RAM value more than 768 MB while setting up an emulator.
  • Run the emulator. It will be blazing fast then ordinary one.

Hope it will be helpful for you. :) Thanks.

like image 56
Kishan B Manavadariya Avatar answered Sep 30 '22 05:09

Kishan B Manavadariya


Just edit the AVD settings as below,

Enable snapshot options and please use INTEL HAXM software for speedup.just visit https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm and download...

like image 40
vivek Avatar answered Sep 30 '22 04:09

vivek