引入第三方库导致出现依赖冲突
例如引入
com.github.PhilJay:MPAndroidChart:v3.1.0
后发现出现了
androidx.annotation:annotation
这个库在本地没有,所以引入无法成功
所以可以使用如下方式解决
compile ('com.github.PhilJay:MPAndroidChart:v3.1.0',{
exclude group: 'androidx.annotation', module: 'annotation'
})
依赖第三方库,同时不依赖androidx.annotation:annotation