錯誤現場
在使用 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'
}
}