hiennguyen92 / flutter_callkit_incoming

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

Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin' #524

Open maravilhosinga opened 2 months ago

maravilhosinga commented 2 months ago

FAILURE: Build failed with an exception.

maravilhosinga commented 2 months ago

I resolved this config:

  1. Change Kotlin to latest version or minimum of 1.8.10 ext.kotlin_version = '1.8.10'

  2. added in android section after: defaultConfig

compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
kotlinOptions {
            jvmTarget = '1.8'
        }
  1. Updated kotlin lib to jdk8:

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

Tha problem is that if you clean the project it will revert all changes. Thew request is to update to lastest versions.

yashpalzala commented 3 weeks ago

Hi @maravilhosinga can you share your project's build.gradle, settings.gradle & gradle-wrapper.properties file. I did the changes as mentioned but does not solve the problem.