For several hours now, I have tried to change the emulator that Android uses with no luck, the application will launch and run fine on the default Nexus 5. by using react-native run-android
. but trying to run it on another emulator crashes, If I try to build from Android Studio, it will not connect to Metro.
I either launch the emulator in Android studio and it won't connect to the Metro bundler.
Or I launch it from the command line with CLI react-native run-android
and it launches Nexus 5 and I can't do shit.
Why can't the emulators easier like ios (facepalm).
Please help me easily launch my react native app on a different emulator than the default. It's outrageous this is not a choice or option. I have tried for hours.
check this out, you will surely find a solution. Its there in android official site
https://developer.android.com/studio/run/emulator-commandline
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.