Could not resolve all files for configuration ':classpath'.
> Could not resolve io.jmix.gradle:jmix-gradle-plugin:2.0.0. Required by: project :
> io.jmix:io.jmix.gradle.plugin:2.0.0
> No matching variant of io.jmix.gradle:jmix-gradle-plugin:2.0.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0.2' but: - Variant 'apiElements' capability io.jmix.gradle:jmix-gradle-plugin:2.0.0 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 8
idea 导入别人的Jmix项目,运行项目总是说需要依赖,要我改成JDK17而不是8,但是不知道怎么改
把setting-Java compiler和project structure的java都改了,还是一模一样的报错
解决方案:
原来要改gradle依赖的java
另:
还有个更全的