My react native project is failing to launch in Android Studio. I am running Metro (ran command line 'npx react-native start' in the project root directory) but the below message appears.
I am able to launch the project with no issues using terminal with the command line 'npx react-native run-android'.
Can someone please assist? I would like to run my project using the emulator in Android Studio and not via terminal.
steps to run react-native project in android studio.
step 1: npm start --reset-cache (it will pop-out a terminal for js-bundling).
step 2: open project root android folder in android studio.
step 3: wait until build project && if you get any error then resolve it.
step 4: after successful build project in android studio "Run" your App. (In case you want to use break-points "Debug-Run" your App.).
step 5:Done
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.