hiennguyen92 / flutter_callkit_incoming

Flutter Callkit Incoming
https://pub.dev/packages/flutter_callkit_incoming
MIT License
180 stars 312 forks source link

Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin'. #589

Open famousuniverse opened 1 month ago

famousuniverse commented 1 month ago

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

FAILURE: Build failed with an exception.

spich commented 1 month ago

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 commented 1 month ago

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

francisnatty commented 1 week ago

hello @spich i dont reallly get you