首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >模块类中的重复类

模块类中的重复类
EN

Stack Overflow用户
提问于 2020-03-05 09:49:14
回答 1查看 1.1K关注 0票数 1

我添加了一个对话框流库,就会出现这个错误。

此错误在其他项目中也是相同的。

代码语言:javascript
复制
Duplicate class org.threeten.bp.Clock found in modules threetenbp-1.3.7-no-tzdb-no-tzdb.jar 
(org.threeten:threetenbp:1.3.7) and threetenbp-1.3.7.jar (org.threeten:threetenbp:1.3.7)
Duplicate class org.threeten.bp.Clock$FixedClock found in modules threetenbp-1.3.7-no-tzdb-no- 
tzdb.jar (org.threeten:threetenbp:1.3.7) and threetenbp-1.3.7.jar (org.threeten:threetenbp:1.3.7)
Duplicate class org.threeten.bp.Clock$OffsetClock found in modules threetenbp-1.3.7-no-tzdb-no- 
tzdb.jar (org.threeten:threetenbp:1.3.7) and threetenbp-1.3.7.jar (org.threeten:threetenbp:1.3.7)

我试过的密码

代码语言:javascript
复制
    configurations {
    all*.exclude module: 'org.threeten.bp' //
}

    implementation ('com.google.cloud:google-cloud-dialogflow:0.117.0-alpha') {
    exclude group :"org.threeten.bp"
}

android.enableJetifier=true
android.useAndroidX=true

删除

代码语言:javascript
复制
//com.jakeewharton.threvenabp:threvenabp:1.1.1'

并使缓存无效

build.gradle file on Github

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-05 11:12:31

在排除配置中,您没有定义group名称,module名称被错误传递。

代码语言:javascript
复制
configurations {
    all{
       exclude group :"org.threeten", module: "threetenbp"
    }
}

我的完整答案是here

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60542394

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档