Chrome OS模拟器启动时崩溃 [英] Chrome OS Emulator is crashing on startup

查看:335
本文介绍了Chrome OS模拟器启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Android Studio中的Chrome OS模拟器上调试Android应用。这是我遵循的教程:


I tried to debug my Android app on Chrome OS emulator in Android studio. This is the tutorial I followed: https://developer.android.com/topic/arc/emulator

The problem is, it crashes on startup. If I try to launch it via terminal, I get this output:

./emulator -avd Pixelbook_beta_API_25
emulator: WARNING: encryption is off
emulator: WARNING: Running on a system with less than 6 logical cores. Setting number of virtual cores to 1
qemu-system-x86_64: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead
virto-goldfish-pipe fatal error: init:475: Could not get virtio gpu ops!
Abort trap: 6

When googling I found only this question, but top solution didn't help me because macOS Catalina spits out a message "Developer can't be verified"

https://stackoverflow.com/a/60819386/9815389

About the environment: I am using macOS 10.15.4, Android Studio 3.6.3. Settings for the emulator are standard, except for the ram which I bumped up to 2048 MB as Google documentation recommends

解决方案

I am also using a Mac running Catalina and face the same problem when I try to start the emulator, even when done from the command line. Specifically, I get an alert which states: "qemu-system-x86_64" cannot be opened because the developer cannot be verified.

The solution to this problem is simply to allow the "qemu-system-x86_64" program to run. To do so, follow these steps:

  1. Try to run the emulator again and wait for the alert to be shown.
  2. Click "Cancel" on the alert.
  3. Go to System Preferences > Security & Privacy > General.
  4. Near the bottom you should see a header called "Allow apps downloaded from:". Make sure you have the "App Store and identified developers" option selected.
  5. You should see an "Allow Anyway" button to the right of some text which says: "qemu-system-x86_64" was blocked from use because it is not from an identified developer. Click the "Allow Anyway" button.
  6. Try running the emulator again.
  7. You should see the same alert as before, except now there should be an "Open" button. Click the "Open" button.
  8. You might see more (possibly a lot) "cannot verify" alerts without "Open" buttons for different program files which the emulator uses. If this is the case, repeat steps 2 through 8 until the emulator runs correctly. It may take awhile, but eventually the emulator will run.

Here's a screenshot of my Security & Privacy Page:

这篇关于Chrome OS模拟器启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆