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 ':flutter_jailbreak_detection:compileDebugKotlin'. > '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. #68

Open
sniperxenocide opened this issue Jun 26, 2024 · 7 comments

Comments

@sniperxenocide
Copy link

Execution failed for task ':flutter_jailbreak_detection:compileDebugKotlin'.

'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.

@usman615
Copy link

usman615 commented Jul 6, 2024

same error

@crovax124
Copy link

same error

at least you can bypass it with if you set in gradle.properties

kotlin.jvm.target.validation.mode=IGNORE

@YoussefGheith
Copy link

same error

@Mohammad-Abureesh
Copy link

Same error but when use bibucket pipelines its appear , but on my device when use 1.9.24 kotlin version and set dist gradle version in gradle-wrapper.prop to 7.5-all.zip its work

ext.kotlin_version = '1.9.24'
classpath 'com.android.tools.build:gradle:7.4.2'
distributionUrl=https://services.gradle.org/distributions/gradle-7.5-all.zip

@Mohammad-Abureesh
Copy link

same error

at least you can bypass it with if you set in gradle.properties

kotlin.jvm.target.validation.mode=IGNORE

when update to use ext.kotlin_version = '1.9.0' , classpath 'com.android.tools.build:gradle:8.0.2' and distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip , then add ignore its work

@mateendev3
Copy link

Same error, After updating Flutter SDK to 3.24.3

@mateendev3
Copy link

Solution For Now:
Need to degrade the Gradle version from 8.3 to 7.6

Before
distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip

After
distributionUrl=https://services.gradle.org/distributions/gradle-7.6-bin.zip

So the app will build successfully.

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

6 participants