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

后端 未结 30 1164
走了就别回头了
走了就别回头了 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:14

    All answers here are using gradle but if someone like me ends up here and needs answer for maven:

        
            src/main/kotlin
            src/test/kotlin
    
            
                
                    org.jetbrains.kotlin
                    kotlin-maven-plugin
                    ${kotlin.version}
                    
                        
                            compile
                            compile
                            
                                compile
                            
                        
                        
                            test-compile
                            test-compile
                            
                                test-compile
                            
                        
                    
                    
                        11
                    
                
            
        
    

    The change from jetbrains archetype for kotlin-jvm is the specifying the jvmTarget. In my case 11

提交回复
热议问题