Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/401.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在模块类中找到重复的类_Java_Android - Fatal编程技术网

Java 在模块类中找到重复的类

Java 在模块类中找到重复的类,java,android,Java,Android,我添加了dialogflow库,出现此错误 这个错误在其他项目中也是一样的 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.b

我添加了dialogflow库,出现此错误

这个错误在其他项目中也是一样的

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'
并使缓存失效


在排除配置中,您没有定义
名称,而
模块
名称传递错误

configurations {
    all{
       exclude group :"org.threeten", module: "threetenbp"
    }
}

我的完整答案是

在排除配置中,您没有定义
名称,并且
模块
名称传递错误

configurations {
    all{
       exclude group :"org.threeten", module: "threetenbp"
    }
}

我的完整答案是

你能在你的gradle文件中发布一些更清晰的内容吗?对不起,太复杂了。。我想整理一下并交给你,但我不知道出了什么问题,你能在你的gradle文件中发布一些更清晰的内容吗?对不起,太复杂了。。我想把它组织起来交给你,但我不知道出了什么问题,谢谢你!它的工作实现('com.google.cloud:google-cloud-dialogflow:0.67.0-alpha'){排除组:“org.threeten”,模块:“threetenbp”}谢谢!它的工作实现('com.google.cloud:googleclouddialogflow:0.67.0-alpha'){排除组:“org.threeten”,模块:“threetenbp”}