ZEGOCLOUD / zego_uikit_prebuilt_call_flutter

MIT License
17 stars 18 forks source link

Could not find com.github.umair13adil:RxLogs:1.0.20 - flutter_logs #58

Closed cyberorigami closed 2 months ago

cyberorigami commented 2 months ago

Seems issue with flutter_logs.

  1. New project: flutter create newproject

  2. 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.

yoer commented 2 months ago

img_v2_e2c6e8f4-1d86-4e8b-9e3b-51e86e073dcg Change these arrows, if the version is lower than this

Abubakarshaikh commented 2 months ago

@cyberorigami Have your issue solved?

cyberorigami commented 2 months ago

Still having same error...

sabir-ullah commented 2 months ago

@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

cyberorigami commented 2 months ago

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)

Abubakarshaikh commented 2 months ago

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,

Naing-Linn-6802 commented 2 months ago

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)

Screenshot 2024-09-06 at 9 56 33 PM Screenshot 2024-09-06 at 9 56 59 PM Screenshot 2024-09-06 at 10 03 13 PM

This fixed my errors. Thank you for sharing. @Abubakarshaikh

cyberorigami commented 2 months ago

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.

yoer commented 2 months ago

image

There are two solutions, details are as follows

solution:

  1. android/app/build.gradle

link

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.

  1. 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
}