hiennguyen92 / flutter_callkit_incoming

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

Build failed on Android; JDK 20 #543

Open danielAsaboro opened 5 months ago

danielAsaboro commented 5 months ago

flutter_callkit_incoming: ^2.0.4+1 (changed version didn't matter)

Simply adding the package causes the app not to compile...

build fails with this error...

Launching lib/main.dart on Infinix X683 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_callkit_incoming:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 20) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 10s
AlexBacich commented 4 months ago

Addressed in this PR: https://github.com/hiennguyen92/flutter_callkit_incoming/pull/557/commits

danielAsaboro commented 3 months ago

Addressed in this PR: https://github.com/hiennguyen92/flutter_callkit_incoming/pull/557/commits

thank you, I use 20...didn't resolve it for me