美文网首页
Cannot inline bytecode built wit

Cannot inline bytecode built wit

作者: 蓝不蓝编程 | 来源:发表于2020-10-11 14:32 被阅读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"
    }
}

相关文章

网友评论

      本文标题:Cannot inline bytecode built wit

      本文链接:https://www.haomeiwen.com/subject/qndepktx.html