I'm using Android Studio version 3.2 and I have 12GB ram and double graphic cards(NVIDIA and INTEL).
I already installed HAXM and also forces emulator.exe and qemu-system-x86_64.exe to work with NVIDIA.
But still the emulator is extremely slow
My Nexus 5X API 24 and 25 Emulators works well but Nexus 5X API 26 and above are very slow, I check memory and CPU costs in Android Profiler it shows much higher than others, even simulators have the same density.
I think currently we often choose latest Emulators (from API 26 - Android 8.0 and above) ONLY for testing code that relates to OS features changes, for stable and performance testing, we should choose Emulators equal or below API 25 - Android 7.1.
I reported this problem to Google, hope they will make some enhancements soon.
Try this:
Go to the emulator settings and try to select different values for OpenGL ES Renderer:
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.
And one more, Why should you not go for Genymotion. I have used as as option for Android Emulator. It is better than Android Emulator.
If you really want to speed up the process, I would like to help you with this.
Follow these steps, ,may be your problem come to an end.
Use actual hardware devices
Don’t Run the Emulator in a Virtual
Machine
I use this configuration on MAC
Configuration Emulator
GPU Mode: Host
Ram: 1024
SDCard Size: 10M
Related
I have HP Laptop with the following configuration -
Processor-Intel Core 2 Duo.
Windows - 7 Home Premium - 32-Bit (SP-1).
Ram - 4GB.
No graphics card(actually some inbuilt graphics support of 256MB I am not sure).
I have installed android studio V3.0(for 32-bit) but when I tried to launch the emulator, (even with arm support) it just starts up and crashes after startup.
I get an error like your processor does not support VT-x. ( I have also checked with Microsoft HAM tool, that my processor does not support it, so I need to use system image with ARM support.)
Now my question is whether I can run ARM support emulator on my machine or not, if yes please tell some crisp and easy steps to do so, since I have also tried 2.7" QVGA screen( lowest resolution) And 128MB Ram allocation, it just crashes after startup with error like-> (Your program has stopped working).
Please suggest any workaround and I shall be very thankful to you.
ARM emulator is very resource intensive, even for current machines. I suggest you to use a real device connected to your development machine.
An alternative could be GenyMotion https://www.genymotion.com/
Android Studio V3.0 doesn't support many features for windows 32 bit System. I recommend you to use Android Studio v2.2.3 instead of 3.0.
U gonna need to enable the VT-X option. Which can be done in the boot menu options. Vt-X is disabled by default in HP laptops.
And HAMx can be downloaded from Intel website. This will help in booting them in the emulator. But with your system configuration, i recommend u stick to eclipse - android.
I am using Android Studio in AMD processor system and the emulator is running very slowly. In the emulator i have allocated RAM size to 1 GB and system image to armeabi-v7a of API-level 23 but still the emulator comes after delay of 10 minutes.please help me in it
Well I suggest you to use Genymotion for Android Studio. Blazing fast! Just needs one time installation. No more AVD pain.
Features
System Requirements
Microsoft Windows 7, 8/8.1, 10 (32/64 bit) 64 bit CPU, with VT-x or
AMD-V capability, enabled in BIOS settings Recent and dedicated GPU
400 MB disk space 2GB RAM
You can use Genymotion which runs very smoothly. Also, you can update your Android Studio to latest version, update your gradle version to latest version. Remove all your old emulators and create new emulator which is fast compare to other old emulators.
As far as I know, all emulators like Xamarin Android Player, Genymotion, Nox, BlueStacks, ... using x86-based system images because they are about 10 times faster than ARM-based system images.
if it's not necessary to use ARM-based system image you can use another emulator like Genymotion or Xamarin Android Player or Nox (I prefer to use Nox) but if you need an ARM-based emulator try enabling Snapshot or Use of host GPU when creating a new Virtual Device to get faster operation.
At the moment I'm developing an application with Android wear support but I have no smartwatch. Now I want to test my application on an emulator but that is the problem. The emulator need up to 1.5 hours to start. I created one with following settings:
<!-- language: lang-none -->
Target Google APIs (Google Inc.) API lev 22
CPU/ABI Google APIs Intel Atom (x86)
Device 5.1" WVGA (480x800: mdpi)
Skin No Skin
RAM 512 //also tried with 768
VM Heap 32
Internal Storage 200
Use Host GPU true //also tried with false
I installed HAXM, enabled it in the BIOS settings and if run
sc query intelhaxm
I get the status 4 like it is written here. I set the HAXM memmory to 2GB so it should be enought. I also do not run any other VM software and I have even reinstalled my Windows. The only interesting information from the LogCat is that there are many lines (up to 70%) of Suspending all threads
My computer has the following Hardware:
<!-- language: lang-none -->
Windows 7 x64
Intel Core 2 Quad Q6600
8GB RAM
Do you have any ideas why my emulator is so slow?
EDIT: Here I posted the target for a smartphone device but it's also so slow for wearable devices so Genymotion is no real alternative because it has no images for them.
Well dont know for sure but all the native emulator in android are very slow.
I suggest that you use the Genymotion which is very faster emulators for android than native.
It will give you user experience almost as of devices though it does have the same limitation of android native emulators.
Toggle your ScreenSize and Monitor dpi to get a lower scale - it will increase your speed of loading and usage.. SnapShot can also be Handy
There are several options:
One option is the Visual Studio Emulator for Android--it's fast, Hyper-V, x86, and free when you install Visual Studio 2015 (currently in Preview; free download).
Reference: Source
Run Android Image in VirtualBox.
http://www.android-x86.org/download
You can use the Intel x86 System images, I'm not sure but they might be faster
Note: I read somewhere that Anti Virus Softwares scan the Image of Emulator which make it slow. I need to confirm it.
One thing i figured out about a slow AndroidX86 in a VirtualBox...maybe it help you.
I have an older system. A Board with a P45Express chipset and only a dual core [E8400].
I have two 1 Gig LAN Ports on my Asus P5Q Deluxe Board [iam connected cia cable to my router]. One is working through the Northbrigde, the othe one works over a PCIe Lane. Since i use the PCIe Port, my AndroidX86 runs alot faster.
Before, when i used the NB supported port, it took me minutes to get a stable connection to the www. It looks like that the VM slows down hard, if the www connection is not supported by a good mainboard connection.
I dont use 3D accleration,i use VBoxSVGA and only PAE/NX and "Nested Paging".
Maybe that can help you abit.
Sorry for my bad english :/
1.Make sure you are using 64-bit operating system.
2.Use host GPU while starting Emulator.
3.Update you graphic drivers if u have graphic card
If you want to make the Android emulator faster and more responsive, you can configure it to take advantage of hardware acceleration. View this link for more details.
Configuring Graphics Acceleration
Try this configuration:
CPU/ABI: Intel Atom (x86);
Device: Nexus 5;
Keyboard: Hardware Keyborard present;
Skin: Skin with dynamic hardware controls;
Ram: 2048;
VM Heap: 64;
Internal storage: 200 MB;
SD Card: 500 MB;
Emulation Options: Use Host GPU;
You have not described which IDE you are using for development. I use Eclipse and with this configuration the emulator go up very fast. Maybe if this won't fix your problem try to use Android studio and the relative emulator which should be better (with the same configuration.
I was experiencing the same issue and almost give up on learning android until I found Genymotion. It is highly recommended.
One cause can be old HAXM driver:
Update here:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
Mine was very slow with 6.0.1 but fast with 6.1.1
I usually use 3 emulator to test the apps (JB, KK and Lollipop). But now I am using my Surface Pro and I can't use a lot of emulator. Then I only use my real nexus 5 device but it is a problem because I am using code for v21 and v19, and I can't test v19.
Is it possible to install the app forcing the v19 in my Nexus 5 with Lollipop?
no.
the nexus 5 with Lollipop is a Nexus 5 with Lollipop (API level 21).
your choices are:
struggle with the emulator on a slower computer
buy another device for testing
buy/use a faster computer
flash the factory image of KitKat on the nexus 5 from here: https://developers.google.com/android/nexus/images (not great option in my opinion)
The only solution would be that when creating a new emulator, you can select x86 in the ABI column which would use Intel HAXM to run the emulator faster.
You can use GENY MOTION ,It is faster then your emulator and its free for personal use.
You can find it there https://www.genymotion.com
I do not know what to do. I purchased a new laptop, hp pavillion i5 6GB RAM, started Android 3.2 emulator and it is still as slow as unusable!!!
It's not that it is slow, it's that I cannot do anything.
I set 1GB of RAM, disabled camera on emulator and run it. When I click on Applications, they first load for 30s and then I am not able to start any app, not mine, not default ones. All I can do is return to desktop and open Applications menu.
I see people complain that the emulator is slow and I am not even able to make it run. What is worse, my laptop eats games like a sandwich, but it chokes with Android emulator 3.2. The same is with Android 3.0 emulator!
Can anyone help me set up the emulator so that I can run it on my machine?
PS. if you want, I will record a video and post it to visually see what I am talking about.
I do not know what to do. I purchased a new laptop, hp pavillion i5 6GB RAM, started Android 3.2 emulator and it is still as slow as unusable!!!
The Android emulator uses a single core. If you had gone with a Core i7 with Turbo Boost, that would have helped. Your Core i5 is not an especially powerful CPU on a per-core basis.
The Android 3.x emulators also do all graphics purely in software (no hardware graphics acceleration) and convert ARM instructions to x86 on the fly.
Can anyone help me set up the emulator so that I can run it on my machine?
Start by using the Android 4.0 emulator, with the latest Android development tools. This uses your desktop's GPU for graphics rendering, and it helps performance a bit.
If that proves insufficient, you can start switching to x86 emulator images if you are not doing NDK development (where you will tend to want to test on ARM). At the moment, the only official x86 image is for 2.3.3, but there is an unofficial one for 4.0.3 built from the AOSP that runs exceptionally fast (at least on Linux, haven't tried it on Windows).
My only suggestion to you would be to change the "ADB Connection Timeout (ms)" in Eclipse under Window->Preferences->Android->DDMS. I am using a HP Pavillion 486 laptop, and was really struggling with the emulators. I changed the default timeout value from 5000 ms (5 sec) to 60000 ms (1 minute). This didn't solve all of my problems, but it did help in the startup of both the emulator and my applications.