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

"npx react-native init client" fails on Android while executing. React Native 0.62.2

$
0
0

System: Windows 10NodeJS: v13.8.0React Native: 0.62.2React: "16.11.0"

It also happens with typescript template

After I run npm run android, I have these logs:

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier"flag.Jetifier found 967 file(s) to forward-jetify. Using 4 workers...info Starting JS server...info Launching emulator...info Successfully launched emulator.info Installing the app...> Task :app:compileDebugJavaWithJavac FAILEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings14 actionable tasks: 6 executed, 8 up-to-dateerror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with -- verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.

BUILD FAILED in 1m 17s

at makeError (C:\Users\Vasyl\Desktop\rn_chat\client\node_modules\execa\index.js:174:9)at C:\Users\Vasyl\Desktop\rn_chat\client\node_modules\execa\index.js:278:16at processTicksAndRejections (internal/process/task_queues.js:97:5)at async runOnAllDevices (C:\Users\Vasyl\Desktop\rn_chat\client\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)at async Command.handleAction (C:\Users\Vasyl\Desktop\rn_chat\client\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! client@0.0.1 android: `react-native run-android`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the client@0.0.1 android script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR!     C:\Users\Vasyl\AppData\Roaming\npm-cache\_logs\2020-04-17T13_46_13_246Z-debug.log

Viewing all articles
Browse latest Browse all 29432

Trending Articles



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