1
votes

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 enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

2
Ciao, you already tried these right? - Giovanni Esposito

2 Answers

1
votes

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

0
votes

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.