I am new to React-Native development,
I am always getting "Build failed with an exception" while i'm running the command react-native run-android
in command prompt project root folder.
Detail error report
BUILD FAILED in 4s
error 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=8081
FAILURE: Build failed with an exception.
I have tried all the possible way to overcome the issue. I also tried to run the app in device, but it is failing to run. I am seeing my device in
adb devices
Please help me to resolve this issue.