gradle Could not run build action using connection to Gradle distribution Unable to get mutable Windows environment variable map(已解决)

报错如下

Could not run build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-4.10.3-bin.zip'.
Unable to get mutable Windows environment variable map
Unable to make field private static final java.util.Map java.lang.ProcessEnvironment.theCaseInsensitiveEnvironment accessible: module java.base does not "opens java.lang" to unnamed module @1134affc	build.gradle

解决方式 指定JDK

 

posted @ 2022-04-26 10:14  zlay-素喂  阅读(2853)  评论(0编辑  收藏  举报