Could not determine java version from '12.0.2'

故事扮演 提交于 2021-01-27 14:50:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!