Sitemap
Ravi Sharma

Ravi Sharma

Software Developer & Technical Writer | 💻 Open to freelance work. Let's collaborate: ravisharmacs09@gmail.com

Run React Native Android App On Mac M1

3 min readJul 17, 2021
Press enter or click to view image in full size

Hi, Guys Ravi here…
So many people asking about running the android app on the mac m1 system and about its performance on mac m1. So In this post, I am sharing all steps to run the react-native android app on mac m1.

Android Emulator for M1 is not available on stable releases yet and I am also waiting for Android Studio to fully support M1 macs so that I can use it for developing my React Native project.

But!

Android Studio Preview has supported M1 chips pretty well so I am using that one to test my android app.

(You can also watch the full video on this topic :
https://youtu.be/yOErAwnu4pc)

You can download Android Emulator for M1 from the below link:
https://github.com/google/android-emulator-m1-preview/releases/tag/0.3

Get Ravi Sharma’s stories in your inbox

Join Medium for free to get updates from this writer.

1.Setup M1 Android Emulator:
You can watch my video on Android Studio Setup on Mac M1:
https://youtu.be/3clEUFzXPjA

Press enter or click to view image in full size

2.After Setting Android Emulator On Mac M1 edit your bash_profile. To edit it open your terminal and run the below command

open ~/.bash_profile

Add this line to your bash_profile, and replace the user name with your username

export PATH="$PATH:/Users/user-name/Library/Android/sdk/platform-tools"
Press enter or click to view image in full size

save and close. Run this command to reload your bash_profile

source ~/.bash_profile

3.Then In Terminal check available adb devices by running the below command:

adb devices

It will show your Android Emulator

Press enter or click to view image in full size

4.Now Create React Native Project by running the below command

npx react-native init AndroidApp

5.Once the project is created, Go to your react-native Project then go to the android directory Create a file with the following name “local.properties”.

Open the file and paste your Android SDK path like below:

sdk.dir = /Users/USERNAME/Library/Android/sdk
Press enter or click to view image in full size

6.Now run you're react native project by

npx react-native run-android

7.Now Your app will run in Android Emulator

Press enter or click to view image in full size

You can comment if you are facing any issues running the android app on the mac m1 system. If you feel this article helped you to solve your issue please clap.
Thanks for reading this article.

--

--

Ravi Sharma
Ravi Sharma

Written by Ravi Sharma

Software Developer & Technical Writer | 💻 Open to freelance work. Let's collaborate: ravisharmacs09@gmail.com