- 记一次使用butterknife 10.1.0报异常
- Static interface methods are onl
- Static interface methods are onl
- Static interface methods are onl
- Static interface methods are onl
- 异常之:Static interface methods are
- Error: Static interface methods
- Error: Static interface methods
- 错误Static interface methods are o
- 284. Peeking Iterator
使用ButterKnife gradle正常,编译失败,报错:
> Transform butterknife-runtime.aar (com.jakewharton:butterknife-runtime:10.1.0) with DexingTransform
AGPBI: {"kind":"error","text":"Static interface methods are only supported starting with Android N (--min-api 24): void butterknife.Unbinder.lambda$static$0()","sources":[{}],"tool":"D8"}
解决办法:
在app module的build.gradle中添加:
android {
// ...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// ...
}
网友评论