DylanCaiCoding / ViewBindingKTX

The most comprehensive utils of ViewBinding. (最全面的 ViewBinding 工具,支持 Kotlin 和 Java 用法,支持 BRVAH,支持封装到基类,支持 DataBinding,支持选择是否使用反射)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Chen-Xi-g opened this issue · comments

我在使用的时候出现这个问题,它提示我以下错误信息:
image
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
但是我运行的时候他没有任何问题。
而且在app -> build.gradle 中添加了以下代码,并没有什么用。
image

你到设置里把 Target JVM version 改为 1.8 试下。

image

我已经解决了这个问题,已经设置了这个选项还是会出现该问题。
我的解决方法是:我在项目中使用了BuildSrc编写了一些插件任务。而buildSrc中的Kotlin版本默认JVM为1.6,导致出现这个错误。