Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

后端 未结 30 1105
走了就别回头了
走了就别回头了 2020-11-29 14:36

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error:

Cannot inline bytecode built with JVM target 1.8 int

30条回答
  •  时光取名叫无心
    2020-11-29 15:27

    Feb 2020
    android 3.4+
    Go to File -> Settings -> Kotlin Compiler -> Target JVM Version > set to 1.8 and then make sure to do File -> Sync project with Gradle files

    Or add this into build.gradle(module:app) in android block:

    kotlinOptions {
               jvmTarget = "1.8"
             }
    

提交回复
热议问题