1

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

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Oleg Zinchenko
  • 503
  • 7
  • 16
  • 1
    Ciao, you already tried [these](https://stackoverflow.com/questions/56891033/facing-issue-failed-to-install-the-app-make-sure-you-have-the-android-develop) right? – Giovanni Esposito Aug 12 '20 at 11:56

2 Answers2

1

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

web_walkerX
  • 840
  • 10
  • 19
  • I rewrote gradle wrapper versions from 6.2 to 6.3 distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip And got: Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. – Oleg Zinchenko Aug 12 '20 at 10:54
  • Mayby I need install Android 10.0 (Q) API Level 29 instead Android 10.0 +(R) API Level 30 ? – Oleg Zinchenko Aug 12 '20 at 11:21
0

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.

Oleg Zinchenko
  • 503
  • 7
  • 16