Unsupported Java. Your build is currently configured to use Java 1.8.0_271 and Gradle 6.8.3.
时间: 2023-11-01 10:41:45 浏览: 74
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.6 and Gradle 6.5.
这个错误提示表明你的项目当前使用的是Java 17.0.6和Gradle 6.5,但是这两个版本不兼容,因此Gradle无法正常工作。解决这个问题的方法有两种:
1.升级Gradle wrapper版本到7.2,方法如下:
在项目根目录下找到gradle/wrapper/gradle-wrapper.properties文件,将distributionUrl改为7.2版本的链接,例如:
```
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
```
然后重新导入项目即可。
2.将Java版本降低到与Gradle 5.4.1兼容的版本,方法如下:
打开File->Project Structure->SDK location->Gradle Setting->Gradle SDK,选择一个1.8版本的Java SDK,下载并运行即可。
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版本。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)