duplicate class 解决方法

作者: 杜白白白 | 来源:发表于2020-10-10 10:57 被阅读0次

程序出现 Duplicate class androidx.camera.view.CameraView$1 found in modules classes.jar (androidx.camera:camera-view:1.0.0-alpha15) and classes.jar (com.github.LuckSiege.PictureSelector:picture_library:v2.5.0) 

报错

解决方法

第一步 :

在Terminal运行   gradlew app:dependencies 命令

第二步 :

ctrl+F 搜索androidx.camera:camera-view

第三步:

在找到的这个下去掉

implementation ("com.best.android.zview:manager:2.0.0"){

        excludegroup:'androidx.camera',module:'camera-view'

}

结束!

相关文章

网友评论

    本文标题:duplicate class 解决方法

    本文链接:https://www.haomeiwen.com/subject/vfvdpktx.html