In this article, we take a look at how to run React Native App in Android Studio Emulator, step-by-step.
- Install NodeJS.
Windows: Download Setup - https://nodejs.org
Mac (macOS): Follow Tutorial: https://code2care.org/tutorial/quick-steps-to-install-nodejs-on-macos
- Install React Native CLI using npm,
% npm install -g react-native-cli
- Create a react-native project,
% react-native init my_android_app
- Create and run Android Emulator using Android Studio,
- Create environment variable ANDROID_HOME as C:\Users\c2c\AppData\Local\Android\sdk
- Run the app using the command,
% npx react-native run-android
If you do not launch the emulator you get an error,
error Failed to launch the emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise, the app may fail to launch.
You can download this article in various formats for your convenience. Choose from the options below:
Facing issues? Have Questions? Post them here! I am happy to answer!
- Step-by-Step: How to install Flutter in Android Studio
- [Android Studio] How to locate code for activity_main.xml
- [Event Log] Android Studio performance could be improved
- Android Studio emulator/Device logCat logs not displayed
- Show Android Studio Emulator in a Separate Window
- Android Studio SDK Build-tools 23 rc2 not getting installed
- Android Emulator Screenshot saved location
- [Android Studio] Error: Missing system image on device
- Android Studio NoClassDefFoundError: java.awt.Toolkit
- Android [SDK Manager] The system cannot find the path specified
- [Android Studio] Could not automatically detect an ADB binary
- Installing Android Studio Dolphin on Mac with Apple (M1/M2) Chip
- [Android Studio] MainActivity does not exist
- How to enable line numbers in IntelliJ Android Studio for all files
- Android Studio - Installed build tools revision 31.0.0 is corrupted. Remove and install again using the SDK manager.
- Android Studio setup was canceled - How to resume
- Your Android SDK is missing, out of date or corrupted SDK Problem
- Locate MainActivity Java or Kotlin file in Android Studio
- How to Determine Android Studio Gradle Version
- Delete Android Studio Projects
- [Android Studio] Button on click example
- Create assets folder in Android Studio
- Disabling Spell Check in Android Studio
- How to save IntelliJ IDE Console logs to external log file
- How to install Android Studio Chipmunk and SDK tools on macOS (2021.2)
- How to show file extensions on Windows 11 - Windows-11
- Java 8: Move a file from Source to Target Directory Example - Java
- Splitting String in Java with Examples - Java
- How to Change Mac Date and Time using Terminal Command - MacOS
- Java: Convert String to InputStream - Java
- How to Open and Use Microsoft Edge Console - Microsoft
- How to install and Configure sar sysstat tools in Ubuntu Linux - Linux
- Get count of SharePoint List or Document Library Items using PowerShell - SharePoint