首先在你的Module中的build.gradle中的
dependencies {
// butterknife
api 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
引入前綴是api否則App和其他Module中無法導包
implementation只能本Module使用
然後App下或其他Module的build.gradle中需要引入
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'