我添加了一个对话框流库,就会出现这个错误。
此错误在其他项目中也是相同的。
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)我试过的密码
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删除
//com.jakeewharton.threvenabp:threvenabp:1.1.1'并使缓存无效
发布于 2020-03-05 11:12:31
在排除配置中,您没有定义group名称,module名称被错误传递。
configurations {
all{
exclude group :"org.threeten", module: "threetenbp"
}
}我的完整答案是here
https://stackoverflow.com/questions/60542394
复制相似问题