For my work project I received I'd need to use the emulator as the company does not have a 5.0 device yet.
But when I try to start it, it loads infinitely. I've checked the logs, and it reboots because of this: http://pastebin.com/yCjiAaPR
Has anyone ran into this issue and solved it yet?
PS: Latest Android SDK, fresh updated! Computer is a Lenovo G50-70, target is ARMv7 with 2gb ram.
Use the GenyMotion emulator instead it is VERY fast, very easy .If you insist to use it then this can be due to the reason that you don't have enough RAM. also try this solution if it still don't work
android emulator won't start
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 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
I'm using Xamarin Studio and Xamarin Android Player on my windows 10 PC.
I'm having trouble starting Lollipop/Marshmallow (API 21/23) devices using the XAP, but on the other hand, launching Kitkat (API 19) works prefectly.
I've downloaded the required android SDK, tried reinstalling everything again and again but nothing works.
It seems wired, because it is not a problem with Virtual Box, nor with my PC or my XAP installation (if it was, than why Kitkat works?).
I've tried every solution I could possibly find, but nothing works.
Any ideas on what could cause this problem?( If further information is required, I will be happy to add :)
EDIT
It does not matter whether I start the devices through VS/XS/XAP. It all comes down to the same problem, but for the sake of simplicity, let's say I'm running them directly through XAP. Here is a screen shot of what happens when I launch Lollipop (which is API 22, and not 21, for a strange reason) :
For like 5 minutes, the following occur:
Than, forever:
And after a few hours it says booting or something like that, and than restarts to the first position.
With Kitkat, it just starts :).
you probably missed the intel HAXM update.. may be a possible duplicate: Android 5.0 (API Level 21) AVD not launching Intel Atom x86_64
First off, it's difficult to determine the problem without more information. Please list or screenshot the build error(s) you receive when you try to debug your app on a XAP emulator.
But on a hunch... within the past week, I had a problem with similar symptoms. In my case, I had to update project packages in order for my Xamarin Forms project to run on the higher Android APIs.
Reference on how to update packages: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/nuget_walkthrough/#Package_Updates
It might be that hyper-v is causing the problem: "VirtualBox and Hyper-V cannot co-exist on the same machine".
Try to disable it using bcedit as explained in the link.
For further reference, see this discussion
After launching xamarin android player, manually launch virtual box.
You should see the device listed on the left. There is a good chance it will say "stalled." If it says anything other than "Running," try reseting it or starting it.
I also had problems with XAP and my solution was to use Genymotion instead.
Did you try Genemotion
I think it is best Android emulator.
I would post a comment but my reputation is too low.
I don't know if this emulator works with Xamarin studio but if you use Visual Studio it may be an option for you.
Here is the solution:
I had the similar issue and fix the issue as follows.
delete the existing device simulator
reinstalled the simulator again
deploy the solution again.
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
My Android emulator beachballs on startup almost every time I try to use it. I'm currently using Android Studio 0.2.0 build 130.737825 on OSX 10.8.4. It seems like it will launch into Android once or twice, then if I close and reopen, it hangs on the black screen before the Android splash screen. At this very moment, it's been hung for about 15 minutes. I don't see anything useful happening in Console. And Android Studio is fine. It's just the emulator that hangs.
The android emulator is pretty much unusably slow. I recommend using genymotion instead of the emulator. Genymotion runs the android device as a virtual machine, so it's basically like having a real device running. And it's super fast.
Android's emulator is slower than Apple's simulator. you can refer to here to know why. But you can actually enhance the virtual device(x86 not ARM) performance, if you install Intel x86 Emulator Accelerator(HAXM) which can be found in Android SDK Manager.