Reputation: 631
I created project with react-native-cli on Win10:
react-native init ShoppingList
But when I run react-native run-android --no-jetifier
I get error. I wrote ANDROID_HOME, JAVA_HOME, ...Sdk\platform-tools in system environment. I rewrote gradle wrapper versions from 6.2 to 6.3
distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip
Upvotes: 1
Views: 79
Reputation: 631
I reinstalled Android 10.0 (Q) API Level 29 instead of Android 10.0 +(R) API Level 30 and this resolved my problem. Maybe it was a conflict with gradle version. Thanks to all.
Upvotes: 0
Reputation: 880
The error is caused by an incompatibility between JDK14 and gradle wrapper versions less than 6.3.
Go to android/gradle/wrapper/gradle-wrapper.properties
and update the gradle to 6.3
distributionUrl=https://services.gradle.org/distributions/gradle-6.3-all.zip
Upvotes: 1