kotlin maven JVM target 1.6. Recompile with -jvm-target 1.8
在使用kotlin 1.3.72时,JDK 11,使用maven来build构建系统是,出现了这样的错误提示:Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'在kotlin官方文档中,推荐使用属性kotlin.compiler.jvmTarget,然而并不起作用。最后的解决方法,是在kotlin-maven-...
原创
2020-05-23 13:59:31 ·
1585 阅读 ·
1 评论