Oleg Zinchenko
Oleg Zinchenko

Reputation: 631

How properly run a react-native project on win10?

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

Upvotes: 1

Views: 79

Answers (2)

Oleg Zinchenko
Oleg Zinchenko

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

web_walkerX
web_walkerX

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

Related Questions