美文网首页
androidstudio Gradle Duplicate c

androidstudio Gradle Duplicate c

作者: 易水寒2018 | 来源:发表于2021-08-13 17:40 被阅读0次

哈哈,当你看到这时,说明其他方案都不起作用
当导入的*.aar中有jar或者类冲突时,需要用不同的方式来解决(gson为例)
方案1(推荐):

implementation(name: '×××××××aar包', ext: 'aar') {
        exclude module: 'gson'
}

方案2:

anndroid{
    configurations { compile.exclude module: 'gson' }
    ...
}

相关文章

网友评论

      本文标题:androidstudio Gradle Duplicate c

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