So I just bought myself a new machine and the emulator keeps on crashing or working really really weird while crashing. I had a laptop that ran the same emulator above fine and that laptop it nothing in compare to my new pc in terms of hardware,so I dont quite get it. I tried running it with different RAM / SD CARD / INTERNAL STORAGE settings,but none seem to work out.
Im on Windows 7 Ultimate running on 65bit.
Here is my last settings,
http://i.stack.imgur.com/xTyCx.png
And here is how my emulator actually looks like when running it
http://i.stack.imgur.com/022Ye.png
Uninstall and Install it again
Check if HAXM (driver and option in AVD) is enabled but the best solution (for me) is Genymotion.
https://www.genymotion.com/?utm_source=dlvr.it&utm_medium=twitter#!/
Genymotion virtual devices are more faster than AVD, they use VirtualBox + Android x86 Image, performance are so good.
With this http://forum.xda-developers.com/showthread.php?t=2528952 you have full support for native library and you can install playstore etc.
Related
I am new to android studio, and I do not have an android phone, so the first thing I actually tried to do is to try out the emulator before I get any further into android studio, but I am facing alot of problems.
When I press on the RUN button, I do find a "Nexus 5X API 27 X86" by default, when I run it, well here comes the problems. Sometimes it runs and opens properly, but without being able to find my app on the device, sometimes the app opens automatically. The device is always so slow, most of the times when I try to open an app, I get a msg "APP(google most of the time) has stopped working" or "Android is starting.." out of nowhere, and that same msg sometimes pops out automatically when I first run the emulator. Sometimes I get "Application Installation Failed" error, found some solutions saying to trun off instant run, I turned it off and I still get the error sometimes.
Generally, it is just impossible to start coding with such device, I had an android phone before and it was much easier.
As far as I know, my laptop should easily support both the android studio and the emulator.
One more thing, whenever I try to set up a new device on kitkat or something, the device doesnt come alive, just a stuck black screen with a logo in the middle.
My laptop:
Intel Core i7-5500U 2.4GHz
4gb RAM + 8gb RAM
Nvidia GeForce 920m - 2gb
64bit
And yeah, HAXM is installed.
Android Studio 3.0.1
Any assistance would be appreciated.
You can try genymotion if you feel android emulator is slow. https://www.genymotion.com/
you can find the difference between the android emulator and genymotion.
android genymotion vs emulator
Emulator's now is much faster and better then genymotion,just create your own device going to avd manager and then try to run it,one more thing , did you turn on intel virtualization in bios ?
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.
I am facing new issue after updating the Android SDK.
I am clicking on the Run in the Android Studio.
1) It opens emulator but during loading the emulator is getting crashing..
Crash Log along with image is attaching here..
Did you try to address the warning message? I suppose you don't have enough RAM left after allocating ~3GB to the virtual device . Especially if you are using a Mac with less than 8GB RAM that's an overkill (I haven't tried if it's at all possible to allocate more than 2GB even if you had enough RAM). Try to reduce the emulator RAM to 2GB and see if that fixes the problem.
This existing stackoverflow question link should help
avd device setup choose emulator device with least resolution, it uses less space on disk
Tip: How to make Android Emulators fast?
I would suggest having an alternative emulator always..
you can't depend on one, get Genymotion emulator
install genymotion plugin for Andriod Studio/eclipse from plugins
You also need genymotion installed on your system, download genymotion
Because the emulator was really slow I installed the intel x86 emulator. I changed the settings in my emulator (ARM to intel atom). Now when I run a project it takes me to the emulator selection screen and when I select it, the project starts running, but the emulator doesn't pop up.
I tried switching the cpu back to ARM, but it still doesn't work.
When I close Android studio it asks me if I want to disconnect from the project so I'm sure it is running.
I came across a few posts that said to give the device 768 ram, but that didn't work.
Anyone knows a solution?
I was facing the exact same issue, but for me reducing the device RAM to 768 did fix it. Therefore I'd suggest continuing to decrease the RAM values and trying to launch it.
How about to use Rock speed Emulator - Genymotion?
I know it sometimes take time to launch emulator and launch app in emulator too. But it depends on your configuration of your PC and settings you have done in Eclipse or Android Studio.
For example: You may have kept "Build Automatically" ON and it sometimes slow down running time.
My current rep is not high enough yet to comment on another answer, so I am adding a new "answer" to +1 Paresh Mayani's answer to use Genymotion. I only recently discovered it and found it to be much much faster than the emulator. Instead of emulation it runs an Android rom in a VM using VirtualBox. I've found that it runs full speed on my machine and is just as fast in debug mode as normal mode, which is impressive since even my Nexus 5 struggles when connected to a debugger.
In my case also x86 was creating problem, I installed Android 5.0.1 armeabi-v7a and have set 768MB as RAM size and it worked.
Try to check and run the emulator ie. store a snapshot for faster startup...
I have tried that by checking the button and works fine.
If you're using an AMD machine try using the "ARM EABI v7 system image". For an intel chip use the "APIs Intelx86 Atom system image". Also, try a different tablet from the Android Studio settings e.g(Nexus 6), as the API level might not be supported from in the Nexus5 VM. You will also have a little wait time for the android emulator, mine takes about 7mins
Emulator in android is very slow and at times it is not responding as well. Does emulator performace is dependent on system configurations?
Is there any other way to view the android app output other than emulator? Kindly please suggest me as emulator is wasting most of my time.
It is not a problem with your environment, it is just that the emulator is very slow.
Practically I use a real phone to do my tests. It is faster and tests are more realistic. But if you want to test your application on a lot of different Android versions and don't want to buy several phones, you will have to use the emulator from time to time.
The Android SDK now alows to use an x86-based Android emulator. See http://developer.android.com/tools/devices/emulator.html#accel-vm
Try Android x86. It's much faster than the Google Android emulator. Follow these steps:
Install VirtualBox.
Download the ISO file that you need.
Create a virtual machine as Linux 2.6/Other Linux, 512 Mb RAM, HD 2
GB. Network: PCnet-Fast III, attached to NAT. You can also use a
bridged adapter, but you need a DHCP server in your environment.
Install Android x86 on the emulator, run it.
Press Alt+F1, type netcfg, remember the IP address, press Alt+F7.
Run cmd on your Windows XP system, change the directory to your
Android tools directory, type adb connect <virtual_machine_IP>.
Start Eclipse, open the ADT plugin, find the device, and enjoy!
Yes, you can speed up the emulator by running the Atom x86 system images instead of the ARM ones (since those CPU instructions need to be translated and thus is slower). Read more here:
http://developer.android.com/tools/devices/emulator.html#accel-vm
The android emulator is slow, can't do much about it. However Intel HAX can speed up your emulator speed significanly. HAX must be installed from your android-sdk-direcotory/extrax/
Then setup your emulator to use the correct system-image. Take a look at intel-hardware-accelerated-execution-manager