3

I followed this React Native error: "Could not determine java version from '9.0.1'." and changed to

distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip

in PROJECT_PATH/android/gradle/wrapper/gradle-wrapper.properties

but this didn't slved my problem it showed me new error Cannot add task 'wrapper' as a task with that name already exists.

tryman
  • 3,233
  • 1
  • 12
  • 23
Chirag Gupta
  • 469
  • 1
  • 7
  • 16

1 Answers1

3

Support for JDK 12 was added in Gradle 5.4 so you need to update accordingly. The latest version however is 5.5.1 if you would prefer that. This post elaborates more on this.

tryman
  • 3,233
  • 1
  • 12
  • 23