在module中使用butterknife

在根gradle中加
classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'

在module的gradle中加
apply plugin: 'com.jakewharton.butterknife'

implementation 'com.jakewharton:butterknife:9.0.0-rc2'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc2'

把R改成R2

猜你喜欢

转载自blog.csdn.net/weixin_40391500/article/details/95329117