错误现场
在使用 RxBinding 时,引入
implementation 'com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2'
时报错
More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’
解决方案
在 app 的 Gradle 中添加:
defaultConfig {
...................
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}