Closed cyberorigami closed 2 months ago
Change these arrows, if the version is lower than this
@cyberorigami Have your issue solved?
Still having same error...
@cyberorigami Solution is: first delete pubspec.lock file then run flutter clean then update the kotlin version to latest in build.gradle then run flutter pub get
To implement above error you just have to 1. flutter create exampleproject 2. add zego packages and it will show above error. Any other packages works perfectly fine.
(Flutter 3.24.2 and followed all the instructions from zego tutorial all versions updated)
Go to flutter_logs (dependency). Make sure to follow these steps too: https://github.com/ZEGOCLOUD/zego_uikit_prebuilt_call_flutter/issues/58#issuecomment-2327822587
Then,
v1.0.18
(flutter_logs/android/app/build.gradle)
Go to flutter_logs (dependency). Make sure to follow these steps too: #58 (comment)
Then,
- From Vs Code/Transitive Dependencies
- Update the to version
v1.0.18
(android/app/build.gradle)
This fixed my errors. Thank you for sharing. @Abubakarshaikh
Found a solution here (link)
you need to change id "com.android.application" version "8.1.0"
to id "com.android.application" version "8.1.0-alpha09"
but after that zego plugin wants lower version of jetbrains:
Execution failed for task ':flutter_callkit_incoming_yoer: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.
so I lowered id "org.jetbrains.kotlin.android" version "1.8.22"
to id "org.jetbrains.kotlin.android" version "1.7.10"
and everything works.
There are two solutions, details are as follows
solution:
The solution for this issue is to add the kotlin-bom dependency to the dependencies section in build.gradle (App Level) like the following:
dependencies {
...
// To fix the duplicate class issue
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
}
For more info, checkout the solution source here.
android/settings.gradle
changed project Kotlin version to 1.8.22.
plugins {
...
// id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
Seems issue with flutter_logs.
New project: flutter create newproject
added dependecies: zego_uikit_prebuilt_call: ^4.15.4 zego_uikit_signaling_plugin: ^2.8.2
causing below error: `FAILURE: Build failed with an exception.