且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android 模拟器 30.4.5 无法在 MacOS 上运行

更新时间:2022-02-14 03:33:46

这里是模拟器版本 30.0.26 的链接 https://dl.google.com/android/repository/emulator-darwin-6885378.zip(取自此答案)

Here is the link for the emulator revision 30.0.26 https://dl.google.com/android/repository/emulator-darwin-6885378.zip (taken from this answer)

下载它,然后复制安装的模拟器.

Download it and then copy over the installed emulator.

如果您启用了文件隔离,它将不起作用;我这样做了,我需要从下载的文件中递归删除隔离区

It won't work if you have files quarantine enabled; I did so I needed to remove quarantine recursively from downloaded files

xattr -r -d com.apple.quarantine /path/to/dir

然后我可以通过调用来运行模拟器:

Then I can run the emulator by invoking:

emulator @device_name

它似乎没有被 AS 检测到,但仍然有效.

It doesn't seem to be detected by AS, but works nonetheless.