Emulator: Process finished with exit code -1073741515 (0xC0000135) - android

Android Studio 4.0, Emulator 30.0.12, Win 10
Everything has been ok, but today my AVD emulator stopped start and started to show error like this:
The emulator process for AVD Pixel_2_API_29 was killed.
if I start it from the AVD Manager or if I started Debug my project then:
Emulator: Process finished with exit code -1073741515 (0xC0000135)
I tried:
remove and install Android Studio ;
reinstalled all plugins, gradle, sdk, emulator;
But it all doesn't effect to it.
May be anyone knows how fix this bug?
Thx!

I've also faced the same situation many times and didn't get the exact error of why this happening from Android Studio.
To understand of what causes this issue, try running the emulator from command line (cmd on Windows) which will also show the whole errors and issues you have:
$ANDROID_SDK/emulator/emulator -avd <NameOfAVD> -verbose -show-kernel
P.S: To get the list of avd devices, go to "sdk_path\emulator" then run:
emulator -list-avds

Related

Error in Android Studio: Installation did not succeed [duplicate]

How to fix ("cmd package install-create -r -t -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package") error when i launch the emulator.
'cmd package install-create -r -t -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package'
20:20 Session 'app': Install failed.
Installation failed
Rerun
It's not your fault. The problem is with the functionality of emulator .
SO,
Close the Emulator.
Go to AVD manager and edit virtual device Quick Boot to Cold Boot.
Try the following steps:
Close the emulator
Cold boot app
Clean Build
Open emulator
Run app
1- Close your emulator
2- Go to AVD Manager
3- Click the down arrow next to your emulator -> cold boot now
I had same problem. This is what I did.
Force quit the emulator.
Go to Android Studio, Click on AVD Manager.
In the action column (last column), click the arrow facing down.
Click Cold Boot Now.
Run code from Android Studio again. Things should run normally.
Usually, this happened because the emulator freeze due to the laptop goes to sleep for a long time.
I would suggest you to run the app again. I was also having the similar problem but when i run the app again, the issues got fixed. If it doesn't solve the problem then create a new adv and start launching your app on it.
Do check once if there are multiple instances of emulator running. I got this error when I had 2 instances of emulator running.
Go To AVD Manager on Android studio
Select the Edit option
Select Boot Option as "Cold Boot"
Launch the Emulator
This should fix your problem

Android Studio Emulator: Process finished with exit code 3 [duplicate]

I have been messing around with android studio and I ended up installing cocos2dx and using an arm cpu emulator to work with cocos2dx. I have recently seen a message prompting for an update for the android emulator service so I installed it and now my emulator crashes while trying to boot and gives this error in the logcat - this is the error it gave me
19:36 Emulator: **
19:36 Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached
19:36 Emulator: Warning: QObject::~QObject: Timers cannot be stopped from another thread ((null):0, (null))
19:36 ADB rejected shell command (getprop): closed
19:36 Emulator: Process finished with exit code 3
I have no idea what this means but I know it has something to do with the update I downloaded, is there any way to roll back the update maybe?
I've come across the same issue on Windows 10: the current version of Android Emulator (Nov 14, 2018: 28.0.16) crashes or freezes as soon as a virtual ARM device is started. When I start it from command line, it prints
Emulator:
ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical:
code should not be reached
As a temporary solution, I downgraded the emulator to an older version and the problem disappeared.
Here you can find Android Emulator 27.2.9:
Windows: https://dl.google.com/android/repository/emulator-windows-4773671.zip
Mac: https://dl.google.com/android/repository/emulator-darwin-4773671.zip
Linux: https://dl.google.com/android/repository/emulator-linux-4773671.zip
Steps to downgrade the emulator:
Stop all instances of the emulator and close Android Studio;
Open Android SDK directory. Its location can be found in the settings: Android Studio->File->Settings->Appearance & Behavior->System Settings->Android SDK->Android SDK Location;
Move existing 'emulator' directory somewhere outside of Android SDK (if you just rename and leave it there, AVD Manager will find it and start using again);
Unpack one of emulator-*-4266726.zip into the SDK directory;
Launch Android Studio and don't update Android Emulator until it's fixed.
Related answer: How to downgrade Android Emulator
I've come across the same issue on Windows 10,I upgrade Android Emulator 28.0.16 to 28.0.20 also solve the error.

How to get logs of Android Emulator crash on Mac?

Android Emulator AVD closes on Mac as soon it is opened. How to check the error logs? In which location is it stored to examine the issue?
Edit: I happened to fix the issue myself. Answer below. In my case, I had to quit Docker.
To see the logs when launching the emulator, I had to use the terminal directly.
First,
$ANDROID_SDK_HOME/tools/emulator #device_name. For me it was /Users/rakshakhegde/Library/Android/sdk/tools/emulator #Nexus_5X_API_O.
In the logs it said that emulator: Failed to sync vcpu reg. So from this SO post I realized that any other running VM can interfere to open the emulator. In my case, it was Docker running in the background. After I killed it, got my emulator running.
adb logcat works for me while running the emulator from AVD Manager in Android Studio 3.2.1

how to completely remove android and all its files from mac?

Awhile ago I tried to get cordova working but the android emulator would never start. It just hangs with a black screen.
I had originally installed it with brew install android-sdk.
Then I read somewhere that was bad. So I have since removed it and installed Android Studio.
Either way, I could never get the emulator to bring up an app.
I have tried remove android studio by dragging to trash from Apps, but it seems to have left some files around.
I just recently tried running meteor which has a built in command for running/installing the android sdk, but alas, when I run the app there it just crashes too.
$ meteor run android
Starting android emulator
[[[[[ ~/projects/simple-todos ]]]]]
=> Started proxy.
=> Started MongoDB.
Unexpected exit code 1 from /Users/username/.meteor/android_bundle/android-sdk/tools/emulator [ '-avd', 'meteor' ]
stdout:
emulator: Failed to sync vcpu reg
emulator: Failed to sync HAX vcpu context
stderr:
HAX is working and emulator runs in fast virt mode
I have no idea. I just need to start over I guess. iOS works fine.
Here is a screenshot from Android Studio when I try to run the emulator:
I had a VM running apparently. No idea how, but I restarted the computer and emulator boots up fine as long as I don't run any other apps.

Android emulator start slowly and lost from running devices

I have a problem with my AVD in android Studio. After I click the run button and start a new emulator it is very slow when the android starts, the app doesn't install on it. When it is finally running and I click the run button again, I can't find the running emulator in the choose device window.
I've got a MacBook Pro, so it is running on OSX 10.10
Maybe I couldn't set up correctly the intel acceleration, but I don't think so it causes the problem. Running emulator is not found. Sometimes it works, but most of the time it doesn't/
I don't use android studio (prefer eclipse) but maybe you can use a genymotion http://www.genymotion.com/ It's free for non commercial use. It's much more faster in eclipse than normal eclipse emulator. In my opinion it acts like real phone when eclipse symulator is always slow especially with hight resolution screen.
I 've already installed HAXM but It isn't better. I try to do it again. I followed the steps. I typed the terminal steps,but I had some problem.
After this command:
kextstat | grep intel
(got this message )
147 0 0xffffff7f82b0b000 0x14000 0x14000 com.intel.kext.intelhaxm (1.1.1) <7 5 4 3 1>
After that:
sudo kextload –b com.intel.kext.intelhaxm
(but I've got that)
/Users/mecseidani/–b failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).
/Users/mecseidani/com.intel.kext.intelhaxm failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).
Can be it a problem!?

Categories

Resources