AS报错:Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM

报错

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

解决方案

修改build.gradle文件,在android节点下增加如下kotlinOptions.

kotlinOptions{
    jvmTarget = JavaVersion.VERSION_1_8
}
发布了407 篇原创文章 · 获赞 90 · 访问量 39万+

猜你喜欢

转载自blog.csdn.net/yinxing2008/article/details/104259502