Failed to notify build listener. > org.gradle.api.artifacts.result.ComponentSelectionReason.getDescr

报错:

Errors occurred while build effective model from E:\gradle-7.0\bin\caches\modules-2\files-2.1\com.google.zxing\core\3.4.0\b7eab116a61512d8b669efcd69446cc45243bd28\core-3.4.0.pom:
‘dependencyManagement.dependencies.dependency.systemPath’ for com.google.android:android:jar must specify an absolute path but is /${env.ANDROID_HOME}/platforms/android-22/android.jar in com.google.zxing:core:3.4.0

FAILURE: Build failed with an exception.

  • What went wrong:
    Failed to notify build listener.
    org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;

原因:IDEA版本的发行日期低于gradle版本的发行日期。就是gradle太新了,IDEA不兼容。

解决方案:更换gradle版本为当前使用的IDEA版本发行日期之前的(或升级IDEA版本)。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值