解决方案:https://github.com/JakeWharton/butterknife/issues/1468
ButterKnife requires that you enable Java 8 in your builds to function as of version 9.0.0 and newer. You can learn more about how to enable this at https://developer.android.com/studio/write/java8-support.
Butterknife 9.0.0以后的版本需要Java8的支持。
在build.gradle中加入
android{
compileOptions {
targetCompatibility = "8"
sourceCompatibility = "8"
}
}
本文系外文翻译,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系外文翻译,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。