- 异常之:Static interface methods are
- Error: Static interface methods
- Error: Static interface methods
- Static interface methods are onl
- 记一次使用butterknife 10.1.0报异常
- Static interface methods are onl
- Static interface methods are onl
- Static interface methods are onl
- Error: Default interface methods
- 错误Static interface methods are o
问题描述:
我这边使用了ButterKnife 9.0.0,而java8才支持静态接口方法,忘了配置
解决方法:
在app的build.gradle中进行如下配置:
android {
compileSdkVersion 28
·
·
·
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
网友评论