Android Emulator For Macbook M1

Setting up the environment

  1. Android Emulator For Macbook M1 Software
  2. Android Emulator For Macbook M1 Pro
  3. Android Emulator For Macbook M1 Garand
  1. I am trying to set up my Macbook air with M1 Chip for mobile app development, the problem is when I am trying to download an android emulator through android studio it keeps on failing so I am beginning to think there is something I am not doing right, Even when I download the android emulator manually it won't open up.
  2. Google has introduced an Android emulator for Apple's new ARM-based Macs. The emulator runs on the new Mac Mini, Macbook Pro and Macbook Air with Apple's M1 chip. The application does not work on Apple products with Intel SoCs. The emulator can be used to run ARM64-based Android apps on a Mac. The native hardware virtualization of the M1 SoCs is used via Qemu.

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
Emulator

Homebrew

Install Homebrew if you don't have it installed already

I am unable to create a virtual device on Android studio on my MacBook air. For all the system images it says that your CPU does not support VT-x. What is the solution or a probable alternative t use a virtual android device on MacBook air with the new M1 chip.

Node LTS with NVM

Android Emulator For Macbook M1Android

iOS

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

Android Emulator For Macbook M1 Software

Android

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

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

Android Emulator For Macbook M1 Pro

  • 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

incorrect architecture 'x86_64' errors

add this to the Podfile

run pod install afterwards

Android Emulator For Macbook M1 Garand

Links