问题描述:
我这边使用了ButterKnife 9.0.0,而java8才支持静态接口方法,忘了配置
解决方法:
在app的build.gradle中进行如下配置:
android {
compileSdkVersion 28
·
·
·
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
网友评论