Your build is currently configured to use incompatible Java 21.0.3 and Gradle 5.4.1
- build报错:Your build is currently configured to use incompatible Java 21.0.3 and Gradle 5.4.1Cannot...
build报错:Your build is currently configured to use incompatible Java 21.0.3 and Gradle 5.4.1Cannot…
报错显示
报错如图。
报错原因
JDK和gradle版本不一致。
成功解决方案
将jdk版本改为1.8,问题解决。
尝试过未成功的方案
升级gradle版本,升级后报错如下。