Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29610

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. in windows 10

$
0
0

Hi I am very new and fresh to react native, I have followed docs installed all needed tools to run react-native with android studio.

Here is my sdk platform settings

enter image description here

Here is my sdk tools settingsenter image description here

I can launch the virtual device manually its shows up and working normally,

But When I run react-native run-android I get the following error

PS C:\custom-xammp\htdocs\shoppingList> react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 963 file(s) to forward-jetify. Using 8 workers...info JS server already running.'adb' is not recognized as an internal or external command,operable program or batch file.info Launching emulator...error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.info Installing the app...ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.Please set the JAVA_HOME variable in your environment to match thelocation of your Java installation.    error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.    Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081        at makeError (C:\custom-xammp\htdocs\shoppingList\node_modules\execa\index.js:174:9)        at Promise.all.then.arr (C:\custom-xammp\htdocs\shoppingList\node_modules\execa\index.js:278:16)        at process._tickCallback (internal/process/next_tick.js:68:7)    PS C:\custom-xammp\htdocs\shoppingList> 

what do I need to do to solve this problem?


Viewing all articles
Browse latest Browse all 29610

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>