Android Virtual device too slow - android

I'm kind of new in the world of developing Android.
I installed Android studio 2.1.3 on my Dell, core i5, 8 GM memory, Windows 10 (x64 machine) HAXM is enabled and running.
I created a virtual device (Nexus 4 or Nexus s), but they work very very slow and almost not responding.
I found a workaround to work with other emulator (there it works smoothly)
I installed in other machine (Windows 7 x64, and there all works OK.
What can I do to improve the performance of the Android virtual device in Android Studio?

I've faced very similar issue in Windows 10 machine (16gb ram, i5 6th generation). I've tried multiple options in Android Studio and nothing work until I've
install Windows Hypervisor Platform in control panel (look it up in
start menu)

In general android simulator is slow, although you can try to allocate it more virtual memory in settings.
Recommended: Try using another simulator Genymotion

Your best bet would be Genymotion. It's way faster than Android's native virtual devices.

Related

Why run Android Virtual Device so lag in ubuntu?

I use the dual OS on my laptop. When I run the android virtual device via windows, it is so smooth. But when I change to my ubuntu 20.04, it is lag. Can I set up anything in ubuntu to test my app on an Android virtual device?
Android Studios drains a lot of RAM while it is functioning and moreover that you are using dual operating systems. There will be a lot of burden on your processor to run both VirtualBox and Android Studios. That is the reason you are getting lag. Please check your processor speed and RAM specifications of your system and try to run Android Studios on your base operating system.

How can I run a MEmu android emulator in a VMware Windows 10 Virtual Machine?

I have a MacBook Pro running bootcamp with windows 7 on it, and I am trying to run a MEmu android emulator on a VMware windows 10 VM (all inside my bootcamp partition). The reason for this is id like to have a sandbox keeping my data private and separate from my bootcamp partition while using the emulator.
MEmu downloads, and installs fine but then gets stuck at 99% infinitely while setting up the emulator. I have been searching the web for quite some time now looking for anything that might give me some insight on how to do this or why this isn't possible and have found nothing.
I have tried installing VMware tools to try and match the graphics requirements, and I have edited my VMs settings so that its configured to run with VT-x/AMD-V enabled. Is there any other way I can make this work?
Wont work because memu is a virtual machine. Memu actually uses a hacked version of virtualbox.

Android Studio and Ryzen CPU?

I know it could be marked as duplicate. But none of the threads helped me, so I decided to make my own.
I'm a Java back-end developer and I've decided to learn some Android stuff.
I worked on Android Studio several years ago having i5-4570 processor. Then I gave up. Now I see Android Studio is really really interesting, so I have downloaded it.
Now I have Ryzen 5 1600 processor. It's really great... but...
None of the Android emulators work for me.
What have I tried?
Android Studio built-in emulator. (Doesn't support AMD-V)
Microsoft Visual Studio Emulator (Crashes Windows 10 and bootloops motherboard till a hard-reset...)
Genymotion (personal use) emulator (Throws a BSOD with error SYSTEM_SERVICE_EXCEPTION)
I don't have any idea what to do now, I don't want to use USB debugging solution because it's... weird and probably slow, because my phone is really old.
Any suggestions? I'm really starting to give up with android development by now.
Use Bluestack 3 or N (Beta). Works with AMD V hypervisor. Make sure your BIOS had enabled the SVM virtualisation settings. Start Android Studios after the Bluestack program is runnning. The android studios should detect the emulator and display the console messages when you finally start Android Studios. Works great on my AMD Ryzen 1600 now.
The processor you've mentioned is a new one. Maybe there aren't any emulators which can run with your processor. Since you haven't included Bluestacks, you may want to try it once.
Also Using a real Android phone is actually faster than using an emulator because while running an emulator the CPU is shared between Android Studio and the emulator which makes build process slower.
And if you feel weird because of the phone which is wired with a cable, you can use wireless debugging. Just search for it in Google or the play store.
Genymotion should work.
VirtualBox (the software behind Genymotion) still has some conflict problems when Hyper-V is enabled in Windows. Try to open the Genymotion emulator image in VirtualBox and under its Settings -> System -> Acceleration, try changing the Paravirtualization Interface and see if that helps.
If that doesn't work, Disable Hyper-V under Programs and Features -> Turn Windows features on or off -> Hyper-V and try it again.
Please try new AndroidStudio 3.1.3 with windows 10
https://www.youtube.com/watch?v=547DXRq8zAo
currently using Ryzen 1600 with ubuntu 17.10 on b350 motherboard
works like charm!!!
Also tested on Windows; butter smooth performance with the new drivers by Google
All Ryzen CPUs are compatible now for Linux as well as windows.
I asked Gennymotion n they said it should.
u need to enable amd-v in bios?

What are the system requirements of ADT?

Please let me know the recommend requirement to run the eclipse and Android emulator simantaniously?
I've a laptop powered by Intel i3 processor 1.7 GHz clock speed, 4 GB RAM and windows 10, Bitdefender antivirus installed but I'm not able to work on these tools smoothly. But on desktop powered by 2.8GHz dual core 3GB ram it works smoothly.
The Android emulator is only showing Android logo at very slowly and it doesn't starts up for about 10 minutes on idle.
Please list down all the recommended requirement which are required to run eclipse and Android emulator simantaniously and smoothly on laptop.
I suggest switching to Android Studio. Support for ADT has ended. Moreover, make sure that you have updated Android SDK. There were improvements in emulators and system images in the last years, which made them faster. You can also switch to Linux (e.g. Ubuntu) because then you can use hardware acceleration for emulators. I'm not sure if it's working on MS Windows. If this won't help, you can try Genymotion.
Do you use Intel HAXM https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager and x86 image in AVD to improve the performance?
In any case, imho to run smootly AVD on a notebook you should have an i7 ULV 2c/4t (i7 4500U or better) and 8gb of RAM.
For development purpose do not use eclipse now, use Android Studio because Google has stopped there support to eclipse. In android studio you can use Genymotion it is faster then eclipse's android emulator.
And about your question the ADT emulator is very slow you have to wait a log time to its get started.Your laptop's configuration is enough. you can use Bluestack http://www.bluestacks.com/ or simply connect your android device via usb and run it on directoly using ADB.

Is Eclipse and Android SDK (Simulator) is faster on Windows or Mac machine?

I have 2 machines, one runs Windows 7 and another Mac. Hardware config is almost the same in the two, 2.4 with 4G RAM.
I notice the android simulator is slow in Windows 7, whould it run faster if I intsall Eclipse and Android SDK on the Mac machine?
what about Eclipse and Android SDK in general?
I think android device is better option that simulator it is much much faster than simulator. If you are planning for serious development then you should buy one android device.
I have a 13" Macbook pro (2010 model, 2.4ghz, 4 gig ram) and the emulator is pretty slow on it... I tend to develop mostly on my Linux desktop, which is 2.4ghz machine as well, and while the emulator is slow it's still MUCH faster than the Mac. Eclipse runs about the same on both... actually the Mac might even be slight faster since it has a SSD.
It's been my experience from watching other Macs run the emulator that the emulator is just slow on Mac :(
I know Google recently updated the the ADK to include speed improvements for the emulator, but I haven't tried that yet.
Try running it on mac, I did the same and found that the emulator runs much faster on mac, as compared to windows.
I have a windows 7 laptop 2 yrs old (8GB, i5) and 15inch MacBook pro 2012 (16GB, i7). I might also note that I am primarily a .NET developer, so I should be bias towards OSX.
I found that running the emulator and the ide on a mac runs faster than windows. I know the mac is considerably faster than my windows box but the difference in the speed of eclipse/emulator doesn't jive. The emulator runs smoother. Eclipse compiles faster on my Mac. The debugger settles/attached to hardware devices quicker.
My experience developing with Eclipse (Android SDK) is much more pleasant on the Mac than windows
I develop primarily on a desktop running Windows 8 since most of our apps are written in C#, I always found debugging painful on both a Samsung S3 and using the emulator.
I had read about using Intel HAXM which is available in the Android SDK Downloader, but never enabled it since I use Hyper-V on my desktop as well.
Fast forward, I'm now using a MacBook Pro because of needing to do iPhone development as well. I installed HAXM on the MacBook, and it made the x86 Android emulator run extremely fast.
TLDR: Install Intel HAXM on a machine with a modern CPU and you'll find running apps on your machine significantly faster.
If you do have Hyper V installed, you can disable it temporarily by creating a boot entry that causes Windows to boot with it disabled.

Categories

Resources