Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulator does not start (c066d201: unhandled exit 1d)

After I deleted some old AVDs and creating a new one, I cant get any AVD to start. If I start them through Android-Studio, the AVD window will launch but the screen stays black and Android-Studio stops responding. If I start the AVD through the command line with the following command:

./emulator @Pixel_3_Api_19

The behaviour is the same and I get the following output in the console:

emulator: WARNING: encryption is off
emulator: WARNING: Running on a system with less than 6 logical cores. Setting number of virtual cores to 1
emulator: WARNING: EmulatorAdvertisement.cpp:80: Overwriting existing discovery file: /Users/koljenka/Library/Caches/TemporaryItems/avd/running/pid_2730.ini
c066d201: unhandled exit 1d
c066d201: unhandled exit 1d
c066d201: unhandled exit 1d
c066d201: unhandled exit 1d

The c066d201: unhandled exit 1d line is printed constantly.

I'm running a 2017 MacBook Pro with MacOS Big Sur Dev Beta, but i had the emulator running fine on the dev beta before deleting the old AVDs.

like image 995
Koljenka Avatar asked Jul 29 '20 07:07

Koljenka


People also ask

Why emulator is not opening?

If the Android Emulator does not start properly, this problem is often related to discovering that your application's minimum SDK is higher than your emulator SDK. If that's not the case, make sure you have HAXM installer on your SDK Manager.

How do I manually start an emulator?

Build and package your app into an APK as described in Build and Run Your App. Start the emulator from the command line as described in the previous section, using any startup options necessary. Install your app using adb. Run and test your app on the emulator.


2 Answers

Use option -gpu host.

You run emulator correctly like this

~/Library/Android/sdk/emulator/emulator -gpu host -avd Pixel_2_API_30

or try this:

create a file named advancedFeatures.ini in ~/.android

Put following settings in it:

Vulkan = off GLDirectMem = on

like image 71
smoothdvd Avatar answered Nov 16 '22 00:11

smoothdvd


Using Mac OS 11 Beta 6 (20A5364e) here. None of the solutions I found worked until I've tried this:

  1. Completely wipeout and reinstall Android Studio (not sure if this is necessary, try skipping this step first. Use THIS as a guide)
  2. Create your virtual device (if haven't already).
  3. Now instead of running your device normally, open AVD manager and click Cold Boot Now: Cold Boot Now option
  4. You will see a warning message, just click DISMISS and your device will start booting: emulation engine failed message
like image 24
butaminas Avatar answered Nov 16 '22 01:11

butaminas