FAILURE: Build completed with 2 failures.
Where: Build file '/Users/milanshrestha/Documents/work/hermes/mobile/HermesMobileV2/hermesmobile/android/app/build.gradle' line: 86
What went wrong: A problem occurred evaluating project ':app'.
Could not read script '/Users/milanshrestha/Documents/work/hermes/mobile/HermesMobileV2/hermesmobile/node_modules/react-native/react.gradle' as it does not exist.
compileSdkVersion is not specified. Please add it to build.gradle
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 3s
I am facing this issue while running android app i got this issue after upgrading some libs on my project in ios its working fine after some fixes but i got stuck in this. Also after trying all solution from stack overflow questions.
Can anyone help me on this.
follow this:
https://github.com/facebook/react-native/issues/36643#issuecomment-1685371108
Then in android > app > build.gradle: comment-out/delete the line
apply from: "../../node_modules/react-native/react.gradle"
if it exists
then run cd android && ./gradlew clean
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With