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

Execution failed for task ':screenshot_callback:compileDebugKotlin'. #92

Open
bear-zyy opened this issue Aug 8, 2024 · 1 comment
Open

Comments

@bear-zyy
Copy link

bear-zyy commented Aug 8, 2024

'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.

@Megamil-LTDA
Copy link

I managed to solve this problem in my project using this in my Kotlin app:

# build.gradle.kts
project(":screenshot_callback") {
    tasks.withType<KotlinCompile>().configureEach {
        kotlinOptions {
            jvmTarget = "17"
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants