No matching variant of io.jmix.gradle:jmix-gradle-plugin:2.0.0 was found

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

另:

还有个更全的

(19条消息) 如何在idea配置能运行Jmix框架项目的java环境,如何将idea里java环境改为java 17_ka_q_yin的博客-CSDN博客icon-default.png?t=N6B9https://blog.csdn.net/ka_q_yin/article/details/131825788

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值