引入第三方庫導致出現依賴衝突
例如引入
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