-
-
Notifications
You must be signed in to change notification settings - Fork 51
JVM target error #76
Comments
I started to use Target JVM version 1.8 |
Is there any thing I need to adjust in my side? |
https://kotlinlang.org/docs/reference/using-gradle.html#attributes-specific-for-jvm
If you are using multiplatform: |
Hi, i am still facing the issue. Please enlighten me. Below is my settings
kotlin version is 1.3.60 |
Hi @soywiz, is there any update about this issue? I have tried to use the 1.8.0 library version with kotlin version = 1.3.60, but still encounter JVM target issue. I did not face any problem below version 1.8.0. And I have set the jvm target to 1.8 as well in the build.gradle. The target JVM version in Settings -> Kotlin Compiler also has been set to 1.8. And on top of that I have clean reinstalled the Android Studio as well. I am facing the JVM target error when I want to run my CommonTest file. However, i can successfully exported my multiplatform project to iOS. So basically I have to use 1.7.0 version for my Kotlin Multiplatform project testing, and use the version 1.8.0 to export it as iOS framework. This is my
Hopefully you can help me on this issue... Thanks |
You have to set the |
I have included the jvm target to my build.gradle. The sample code is on the previous message. Is it wrong?
|
Can you generate a small project reproducing the issue in a repo or a zip file? It should work. But if it doesn't I'' investigate it |
Noted. I will provide u a sample application soon. Ty in advance! |
hi @soywiz , I Have attached a sample app. Thanks! |
Sorry for the huge delay. I didn't know your problem was with the android. The Change:
with
|
hi @soywiz Since our current project is using groovy, i tried to find proper syntax to it and i come out with below settings
and seems like it doesn't throw the jvm target error anymore. I tried to get you sample app by using groovy, but the tutorial is using kotlin, not groovy anymore. So i guess it has been fixed now. Thank you so much for your help! |
Hi, i am facing problem after updated IntelliJ. I also have updated my kotlin version to 1.3.60
Previous version i never face any issue, but in this build, i face this error. Now I am using version 1.8.0
FAILURE: Build failed with an exception.
Here is the code in my commonMain folder
I have changed my project JVM version setting to 1.6.
![image](https://user-images.githubusercontent.com/19270457/69615468-e190d100-106f-11ea-8d9c-592922ef8531.png)
Is there anything that I have to do to solve this issue? Hopefully you can guide me on this. Thanks!
The text was updated successfully, but these errors were encountered: