注:本异常较为宽泛、模糊,请仔细阅读后续的异常日志,以便确定自己项目的问题所在!
A problem occurred configuring root project 'external-data-service'. > Could not注 resolve all files for configuration ':classpath'. > Could not resolve :spring-boot-gradle-plugin:3.1.0. Required by: project : > ::3.1.0 > No matching variant of :spring-boot-gradle-plugin:3.1.0 was found. The consumer was configured to find a lib rary for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org. -version' with value '8.0.2' but: - Variant 'apiElements' capability :spring-boot-gradle-plugin:3.1.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 consum er needed a component for use during runtime, compatible with Java 8 - Other compatible attribute: - Doesn't say anything about -version (required '8.0.2') - Variant 'javadocElements' capability :spring-boot-gradle-plugin:3.1.0 declares a component for use durin g runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about -version (required '8.0.2') - Variant 'mavenOptionalApiElements' capability :spring-boot-gradle-plugin-maven-optional:3.1.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 consum er needed a component for use during runtime, compatible with Java 8 - Other compatible attribute: - Doesn't say anything about -version (required '8.0.2') - Variant 'mavenOptionalRuntimeElements' capability :spring-boot-gradle-plugin-maven-optional:3.1.0 declar es a library for use during runtime, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compa tible with Java 8 - Other compatible attribute: - Doesn't say anything about -version (required '8.0.2') - Variant 'runtimeElements' capability :spring-boot-gradle-plugin:3.1.0 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compa tible with Java 8 - Other compatible attribute: - Doesn't say anything about -version (required '8.0.2') - Variant 'sourcesElements' capability :spring-boot-gradle-plugin:3.1.0 declares a component for use durin g runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about -version (required '8.0.2')
仔细阅读我的报错
主要是java版本问题。我使用的Jmix框架要求java17,而我在某个地方的版本没设置正确。
解决方案:
(不是java17也可以看看,方法是一样的)
(19条消息) 如何在idea配置能运行Jmix框架项目的java环境,如何将idea里java环境改为java 17_ka_q_yin的博客-****博客/ka_q_yin/article/details/131825788