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_callkit_incoming:compileDebugKotlin'. #589

Open
famousuniverse opened this issue Sep 28, 2024 · 3 comments

Comments

@famousuniverse
Copy link

Its the only package that fails -- any clues why?

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin'.

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

@spich
Copy link

spich commented Oct 3, 2024

group 'com.example.flutter_callkit_incoming'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '2.0.10'. <<<<< change
repositories {
google()
jcenter()
}

dependencies {
    //classpath 'com.android.tools.build:gradle:4.1.0'
    //classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    
    classpath 'com.android.tools.build:gradle:8.1.2'                                <<<<<<<<<<< change
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

rootProject.allprojects {
repositories {
google()
jcenter()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdk 34

if (project.android.hasProperty("namespace")) {
    namespace "com.hiennv.flutter_callkit_incoming"
}

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
    minSdk 23
    targetSdk 34

    consumerProguardFiles 'consumer-rules.pro'
}
compileOptions {                                                              <<<<<<<<< change
    sourceCompatibility JavaVersion.VERSION_17         <<<<<<<<<<change
    targetCompatibility JavaVersion.VERSION_17         <<<<<<<<<<<change
}

}

@famousuniverse
Copy link
Author

Thank you @spich - that did it, fixed now. 😎

@francisnatty
Copy link

hello @spich i dont reallly get you

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

3 participants