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.
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to Android-Studio,
- 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)
More Posts:
- [Python] Fix: ValueError: All arrays must be of the same length - Python
- Merge multiple zip files without unzipping (extracting) - HowTos
- Python: Get just the filename without extension using Path - Python
- [Java] Read a File with UTF-8 Encoding - Java
- Setting up Java JUnit Project with Eclipse + Maven Example - Java
- [Vi/Vim] How to move cursor to the start of a line - MacOS
- Fix: zsh: command not found: npm after installation (Node.js) - zsh
- Fix: Cannot resolve reference to bean while setting bean property Spring applicationConfig.xml - Java