Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

newly created Chromebook OS emulator crashes on start up

I recently created a Chromebook OS emulator on Android Studio with the help of https://developer.android.com/topic/arc/emulator , however, it crashes on launch and getting following errors

12:12 PM    Emulator: qemu-system-x86_64: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead

    12:12 PM    Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: /Users/sshinde/.android/emulator-grpc.cer security will be disabled.

    12:12 PM    Emulator: Started GRPC server at 127.0.0.1:8554

    12:12 PM    Emulator: virto-goldfish-pipe fatal error: init:469: Could not get virtio gpu ops!

    12:12 PM    Emulator: Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

enter image description here

I also tried updating Android studio to latest version 3.6.1 but the emulator still crashes. Is there any other way to test android app on Chrome OS or how to resolve these errors? P.S I don't own an actual device

like image 618
musica Avatar asked Mar 19 '20 11:03

musica


People also ask

Why is my emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why does my Chrome app keep crashing?

First: Try these common Chrome crash fixesYour Android phone or tablet may have run out of memory, and can't load the site while also running your apps and programs. To free up memory: Close every tab except for the one that's showing the error message. Quit other apps or programs that are running.

Why do my apps keep stopping on my Chromebook?

You can fix many common issues with apps: Turn your Chromebook off and on again. Check your Internet connection. Clear the app data and cache.

Why do apps sometimes look different in the designer than they do in the emulator?

The reason why the designs look different is that the emulator's screen configuration is different to that which is used to render the design preview.


1 Answers

Appears to be a bug with the emulator binary.

Per the tracker, download the older version of the emulator and replace it within your Android SDK folder. I was able to verify this working on MacOS.

  • Windows https://dl.google.com/android/repository/emulator-windows-6031357.zip
  • Linux https://dl.google.com/android/repository/emulator-linux-6031357.zip
  • MacOS https://dl.google.com/android/repository/emulator-darwin-6031357.zip

Edit: I should mention it's only working via CLI for me, not through Android Studio emulator -avd Pixelbook_beta_API_25

like image 139
Leonardo Casale Avatar answered Nov 13 '22 15:11

Leonardo Casale