问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/57160952/could-not-determine-java-version-from-12-0-2