装有ARM CPU M1的macOS上的Android Studio/仿真器 [英] Android Studio/Emulator on macOS with ARM CPU M1
问题描述
我使用新的ARM cpu M1在macOS Big Sure 11.0.1
中启动了Android Studio 4.1
安装Rosetta后:是的,它可以构建!
但是模拟器有问题,表明我 CPU不支持VT-x
甚至ARM映像也有此问题
我使用了最新的,很旧的api25(Google必须在这里做一些事情),但是它的运行速度很慢
如何使仿真器快速工作?
好消息!
第一篇文章
我可以确认,此预览正常运行
好的,它有一些局限性,但它可以运行而且速度很快
2021 年 5 月编辑
Android Studio Arctic Fox(2020.3.1)Canary 15 有一个 arm64 版本.您可以在此处
我建议提前运行 git clean -xdf
以确保使用arm64 java
2021年4月进行修改
它对我来说是无缝的,在Android Studio 4.1.3中,您需要一张arm64 R图像.
但是在更新Android Studio之后,它停止工作了.我通过
I started Android Studio 4.1
in macOS Big Sure 11.0.1
with new ARM cpu M1
After installing Rosetta: Yes, it builds !
But the Emulator has problems, it shows me CPU does not support VT-x
Even ARM images have this issue
I used the most recent, a very old api25 (Google has to do here something) but it's increadible slow
How to make the Emulator work and fast ?
Good news !
First post
I can confirm, this preview works properly https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
Ok it has some limitations, but it works and it's fast
Edit on May 2021
There is an arm64 version available for Android Studio Arctic Fox (2020.3.1) Canary 15 You can download it here https://developer.android.com/studio/archive
NDK builds doesn't work
I recommend to run git clean -xdf
in advance to make sure to use arm64 java
Edit on April 2021
It works for me seamless in Android Studio 4.1.3 you need one of this arm64 R images.
But after update of Android Studio it stopped working. I made it run again with this dirty hack
Edit on 4th Feb 2021
Now audio in and out works properly https://github.com/741g/android-emulator-m1-preview/issues/10#issuecomment-773532762
这篇关于装有ARM CPU M1的macOS上的Android Studio/仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!