Unsupported Java. Your build is currently configured to use Java 1.8.0_271 and Gradle 6.8.3.
时间: 2023-11-01 07:41:45 浏览: 247
This error message suggests that your current Java version is not compatible with the version that is required by your build. You may need to update your Java version to a newer one that is compatible with your Gradle version.
To update your Java version, you can go to the Java website and download the latest version of Java. Once you have installed the new version, you can update your Java environment variables to point to the new version. You can then try running your build again and see if the error message goes away.
相关问题
Unsupported Java. Your build is currently configured to use Java 17.0.8 and Gradle 6.5.
这个错误是由于您的构建配置使用了不支持的Java版本。根据引用,您的构建当前配置为使用Java 17.0.6和Gradle 6.8.3。然而,根据引用中提供的Gradle版本和Java版本的对应关系,Gradle 6.8.3需要JDK 11或更高版本。因此,您需要将您的Java版本升级到支持Java 11或更高版本的版本。
Unsupported Java. Your build is currently configured to use Java 21.0.1 and Gradle 7.3.3.
这个错误提示意味着你的构建当前配置使用的是Java 21.0.1和Gradle 7.3.3,但是这两个版本不兼容。解决这个问题的方法是将Java版本降级到与Gradle 7.3.3兼容的版本。你可以在Gradle官方网站上查看Java和Gradle版本的兼容性表格,以确定应该使用哪个Java版本。然后,你需要在你的系统中安装并配置该版本的Java,并将其设置为你的项目的默认Java版本。
阅读全文