butterknife 報空指針的 錯誤 不要着急
只需要在 app的 build 里面加兩行代碼 包你搞定
defaultConfig {
......
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
然后 加上依賴之后就好
compile 'com.jakewharton:butterknife:7.0.1'
記住這里的依賴 必須是7.0版本的
