哈哈,当你看到这时,说明其他方案都不起作用
当导入的*.aar中有jar或者类冲突时,需要用不同的方式来解决(gson为例)
方案1(推荐):
implementation(name: '×××××××aar包', ext: 'aar') {
exclude module: 'gson'
}
方案2:
anndroid{
configurations { compile.exclude module: 'gson' }
...
}
哈哈,当你看到这时,说明其他方案都不起作用
当导入的*.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
网友评论