当我们引入的多个第三方的库共同依赖的库不一致的时候会报这样类似的错误
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 27.1.1. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:design:27.1.1
例如:implementation ‘com.github.jdsjlzx:LRecyclerView:1.5.4.3’
implementation ‘com.github.jdsjlzx:banner:1.0.0’
我们可以修改依赖的条件
implementation ('com.github.jdsjlzx:LRecyclerView:1.5.4.3'){
exclude group: 'com.android.support'
}
implementation ('com.github.jdsjlzx:banner:1.0.0'){
exclude group: 'com.android.support'
}