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:
- How to Restart or Reload Nginx Server Service on Linux - Linux
- What does has notifications silenced in Messages App mean in iPhone - iOS
- New Mac? How to install Native Chrome on M1/M2 Mac - Chrome
- Java monitoring and management console [jconsole] - Java
- How to Decode Base64 Data String in Python - Python
- Java: Collect Stream as ArrayList or LinkedList - Java
- How to install Java 11 on Mac - Java
- IntelliJ Keyboard Shortcut to remove unused imports [Java] - Java