轉為Android X 後報錯 ,

在gradle中引用的是
implementation 'com.jakewharton:butterknife:10.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
在使用 10.0 的版本的時候 , 需要添加
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
要使用 java 1.8的版本 , 具體的原因 , 可以是 10.0 要求的