


There is one typo, change, -assets-des to -assets-destĪfter I follow your step, the android still has the same issue below. So to my knowledge, there is a bug somewhere in the setup. ran this command in AwesomeProject\android\:Īfter that I was able to run the project using npx react-native run-android without any problems.changed the gradle version in the distributionUrl property into:.opened the file AwesomeProject\android\gradle\wrapper\gradle-wrapper.properties.Npx react-native bundle -platform android -dev false -entry-file index.js -bundle-output android/app/src/main/assets/ -assets-des android/app/src/main/res created a folder “assets” in AwesomeProject\android\app\src\main.After creating a new project with npx react-native init AwesomeProject (as documented in React Native docs), I This is how I managed to get it up & running (using npx react-native run-android). Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2Īfter some digging, I found out that the problem must indeed be somewhere in the setup script. Watchman: 4.9.0 - /usr/local/bin/watchman Here is my “npx react-native info” command output: infoĬPU: (8) 圆4 Intel(R) Core(TM) i5-8259U CPU 2.30GHz I am trying to run on android virtual device. Run CLI with -verbose flag for more details. Set up your Android development environment:Įrror Command failed. Make sure you have an Android emulator running or a device connected and have Run with -scan to get full insights.Įrror Could not install the app on the device, read the error above for details. Run with -info or -debug option to get more log output. Run with -stacktrace option to get the stack trace. Run gradlew tasks to get a list of available tasks. Task 'installDebug' not found in project ':app'. I am trying to work on an open source project ( ) but when I download the code and run “npx react-native run-android” I get the following error: FAILURE: Build failed with an exception.
