Macbook Pro M1 Android Emulator

Setting up the environment

Builds on M1 for Android Studio are extremely slow. Avoid if you are Android developer. MacBook Pro with Intel i5 chip runs my build 2x faster. Maybe when there. I have an option to get 16inch Macbook Pro 2019 or Macbook Air/Pro M1. What are your suggestions? My primary tasks are Android app development (and use emulator quite rarely for testing also). Cost is not an issue.

Setup for iOS needs:

  • Node (with NVM)
  • Watchman brew install watchman
  • Xcode (install from the App Store)
  • Xcode Command Line Tools xcode-select --install
  • Accept the Software License for Xcode sudo xcodebuild -license. It'll prompt you anyway when you run Xcode for the first time.
  • CocoaPods sudo gem install cocoapods
Macbook Pro M1 Android Emulator

Android On M1 Mac

Homebrew

Install Homebrew if you don't have it installed already

Node LTS with NVM

iOS

  • Open Terminal / iTerm with Rosetta (Get Info > Open using Rosetta)
  • Prefix the CocoaPods related commands with arch -x86_64
Macbook Pro M1 Android Emulator

Android Emulator For Apple M1

Android

  • Install JDK 8 brew install --cask adoptopenjdk/openjdk/adoptopenjdk8
  • Install Android Studio
  • Install Android Emulator for M1

The Android Emulator doesn't work out of the box yet. Luckily, there is a Preview build by Google that supports Apple Silicon M1 chip based MacBooks. You'll have to download and install it separately. Most things work.

Troubleshooting

Macbook pro m1 android emulator windows 10
  • command not found for brew or nvm. Make sure you have a ~/.zshrc file. On a fresh new M1 MacBook, there is no ~/.zshrc or ~/.zprofile created and the $PATH doesn't get updated because of it. Create a ~/.zshrc file and run the commands to install Homebrew and NVM again.

Add this to you Podfile

Two options:

  • Run on a different port react-native start --port=8088
  • OR find out what program is using 8081 sudo lsof -i :8081 and kill it kill -9 1234
Macbook Pro M1 Android Emulator

Android Emulator For Macbook Pro

incorrect architecture 'x86_64' errors

Macbook pro m1 android emulator download

Android Emulator M1 Preview

add this to the Podfile

run pod install afterwards

Links