Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akniyetc opened this issue Jun 13, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@akniyetc
Copy link

Happens when project is compiling

core\datasource\storage\FeedStorage.kt: (26, 13): Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option Adding support for Java 8 language features could solve this issue.

@Nei1eveN
Copy link

Nei1eveN commented Jun 18, 2021

you can add these lines inside the kotlin block:

android {
    compilations.all {
        kotlinOptions {
            jvmTarget = "1.8"
        }
    }
}

@fabs88k
Copy link

fabs88k commented Jul 9, 2021

Hi guys, that's still not working for me. Any more suggestions about it please ?

if I remove the following line it works: https://github.com/Kotlin/kmm-production-sample/blob/52afdcc7b9d7454a85751c2336c67fed6cb3a02a/shared/src/commonMain/kotlin/com/github/jetbrains/rssreader/core/datasource/storage/FeedStorage.kt#L26

@KaterinaPetrova KaterinaPetrova added the bug Something isn't working label Jul 15, 2021
@terrakok
Copy link
Contributor

Hi! What is your JAVA_HOME?
Could you show me output of ./gradlew clean :android:assembleDebug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants