Cannot inline bytecode built wit

2020-10-11  本文已影响0人  蓝不蓝编程

报错

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option

解决方案

android {
    ...
    compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
 
    kotlinOptions {
        jvmTarget = "1.8"
    }
}
上一篇下一篇

猜你喜欢

热点阅读