ButterKnife与RxBinding中文件重复问题解决
问题出现在于两个包中的文件冲突
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'android-apt'
android {
...
}
dependencies {
compile 'com.jakewharton:butterknife:8.2.1'
apt 'com.jakewharton:butterknife-compiler:8.2.1'
compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
}
解决办法:将 apt 'com.jakewharton:butterknife-compiler:8.2.1'
去掉,这样可以使用ButterKnife与RxBinding