React Native Run Error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

React Native Run Error

I have created a new react-native project and when ever i run command yarn react-native run-android , it shows the following error : FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Trailing char < > at index 46: C:\Users\Maaz Masood\AppData\Local\Android\Sdk \package.xml * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Trailing char < > at index 46: C:\Users\Maaz Masood\AppData\Local\Android\Sdk \package.xml * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s at makeError (F:\React\AwesomeProject\node_modules\execa\index.js:174:9) at F:\React\AwesomeProject\node_modules\execa\index.js:278:16 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async runOnAllDevices (F:\React\AwesomeProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:106:5) at async Command.handleAction (F:\React\AwesomeProject\node_modules\@react-native-community\cli\build\index.js:186:9) info Run CLI with --verbose flag for more details. I have installed latest android studio , sdk and android oero on my emulator

20th Aug 2021, 10:33 PM
Maaz Masood
Maaz Masood - avatar
1 Answer
0
I don't know if this will work for you but give it a try under a vpn, I think you have a connectivity issue.
26th Aug 2021, 3:42 AM
David Rios
David Rios - avatar