Android Studio Emulator M1 Mac

Nox

The latest Canary build of Android Studio (15 as of writing this) brings initial native support for M1 Macs. There are still a lot of things missing, but the basics work. You can build and run. Here is the list of 10 Best Android Emulators For PC of 2020. Android-based emulators were developed in order to have smartphones applications run on PC. No emulators at this point. IntelliJ has some lags in performance on M1 (because it is not native, and Intel built), but feels pretty usable. Yes, Android Studio and the M1 emulator are working. However keep in mind that sometimes Android Studio will start pushing to Swap massively about 1 hour of work in. We talk a lot about emulating PC experiences on our phones, but what about putting phones on PC? Let's look at the best Android emulators!

M1 Macbookを使っている方はFlutterの環境構築でAndroidエミュレータが使えなくて焦ったと思います。
私もまだまだ初心者なので色々と拙いですが、よろしくおねがいします。

M1macじゃなければ動くように設定できている前提で進めます。

(面倒だったら挫折する前にiOSで開発を進めちゃうのでも全然良いと思います。)

M1 Macbookではエミュレータが使えないということで、2020年の12月頃にGoogleがAndroidのデモ操作をできるパッケージを提供しました。

Mac

そのパッケージを使うことでAndroid Emulatorというアプリをダウンロードして起動してデモ操作ができるようになりました。

Android

そして2021年3月頃に、そのパッケージは必要なくなりました。Android Studioでエミュレータが起動できるようになったからです。

その方法を解説します。

まず画面右上の辺りからAVD Managerを開き、 Create Virtual Device...を開きます。

適当に選択します。 

次にOther Imagesの欄に移動してください。
私は既にダウンロード済みになっていますが、 API Level30辺りを適当に選択して、ください。
大事なのはABIがarm~となっているやつです。このarmがついているのを選択するとM1でも利用できるようになるみたいです。(まだまだ作業は続きます)
Nextを押してダウンロードを進めていってください。

ダウンロードが完了して開こうとすると、The emulator process for AVD was killed と出てエミュレータは開けないでしょう。

ここで一度API Levelがダウンロードしたエミュレータと同じものを利用できるようになっているかチェックしてみてください。

次に、

./Library/Android/sdk/emulator/darwin-aarch64-replace.sh

のdarwin-aarch64-replace.shを起動してください。

起動の仕方はTerminalでemulatorディレクトリまで移動した後に、

Android Studio Emulator Not Working Mac M1

これで

emulator-darwin-aarch64-0.2.zip

がダウンロードされているはずです。このファイルをクリックすると emulator-darwin-aarch64-0.2
というファイルが生成されます。

emulator-darwin-aarch64-0.2を開いて中身を全てemulatorファイルに移してください。

Android Studio Emulator Download

Android studio emulator m1 mac os

Android Studio Emulator Mac M1

そしてAVD Managerを開くと

Android Emulator

Android

Android Studio Emulator M1 Mac Download

<参考記事>
https://github.com/google/android-emulator-m1-preview/issues/34

Comments are closed.