IDEA编译Kotlin项目报错解决 Cannot inline bytecode buit with JVM target 1.8 into bytecode that is being built with JVM target 1.6.Please specify proper '-jvm-target' option

原因: IDEA默认的Kotlin编译器设置的target是1.6, 修改为1.8或以上即可
如图中所示, 已将 Target JVM Version 修改为11.

img

posted @ 2021-10-08 20:04  beansoft  阅读(2084)  评论(0编辑  收藏  举报