10

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.

Koljenka
  • 115
  • 1
  • 9
  • I am on Big Sur latest beta and also having this issue. Its intermittent. I have had to delete the emulator and recreate it a few times. Same issue with Android Studio 4.1 beta – adrian.coroian Jul 29 '20 at 17:50
  • Thanks thats good to know. Maybe I'll just return back to Catalina for the time being. – Koljenka Jul 30 '20 at 07:01
  • 1
    This other question is linked with Google Issue Tracker: https://stackoverflow.com/questions/63576252/android-emulators-are-not-working-on-osx-big-sur . I'm linking for someone in the future – Erick M. Sprengel Aug 31 '20 at 00:32
  • I think this question is duplicate of well described: https://stackoverflow.com/questions/63576252/android-emulators-are-not-working-on-osx-big-sur – Duna Sep 01 '20 at 04:29
  • 1
    It's the other way around, your question is a duplicate of mine, as mine is a month older. But I think it's fine. – Koljenka Sep 01 '20 at 08:21
  • I updated macOS Big Sur to 11.0 (Beta) and the emulator is just working. Can someone else check it? – Erick M. Sprengel Sep 10 '20 at 01:01

2 Answers2

24

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

smoothdvd
  • 2,389
  • 4
  • 20
  • 25
3

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
Dharman
  • 30,962
  • 25
  • 85
  • 135
butaminas
  • 672
  • 7
  • 23