错误详情如下
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
解决办法:升级到 Java 11
代码示例如下:
android {
compileSdkVersion 30
kotlinOptions {
jvmTarget = "11"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}