To run and test your React Native application on the android device you need to set up the Android Environment. Setting up your development environment in Mac OS is easy but can be somewhat tedious if you’re new to Android development. So let’s get started with the installation of Android Studio and Setting up Android Development Environment in Mac OS. If you want to install the same on Windows or Linux platform you can visit 3 Steps to Setting up Android Development Environment & Android Studio in Windows and Linux.
If you want to install Xcode also then here is the process of Installation of Xcode for React Native IOS Development.
1. Download Android Studio
To install Android Studio in your Mac you need to Download Android Studio first. Please visit the official website of Android Developers using this link and download the Studio.
2. Install Android Studio
After finishing the downloading you will see an auto-generated popup window or if not then you can find the downloaded file in your download directory. You can double click the file and can see the dialog.
For those who are new users for the mac please remember you need to add any new application to the Application of Mac. So to do that just click on the Android studio logo and drag it to the application logo side which will move Android Studio in Applications and install it.
3. Installation of SDK
After installation of the Android Studio, you need to install SDK and other dependencies to set up the Android Development Environment which is very simple. You just need to follow the instruction to install the SDK.
And Here you go.. Installation is done.
This is how you can install the Android Studio and can set up the Android Development Environment in your Mac OS. Next, You will need an Android device to run your React Native Android app. This can be either a physical Android device or more commonly, you can use an Android Virtual Device which allows you to emulate an Android device on your computer. To create an Android Virtual Device you can follow how to create an Android Virtual Device and different ways to launch the Emulator.
If you are facing any problem or if you have any doubt about the topic you can comment below or contact us here.
Hope you liked it 🙂