saibotma / jitsi_meet_wrapper

Jitsi Meet Plugin for Flutter. Wrapping JitsiMeetSDK for Android and iOS.
BSD 3-Clause "New" or "Revised" License
26 stars 61 forks source link

Android app fail with error Could not resolve org.jitsi.react:jitsi-meet-sdk:7.0.1. #79

Closed jigar541patel closed 1 year ago

jigar541patel commented 1 year ago

Hello. running in android getting error

FAILURE: Build failed with an exception.

Screenshot 2023-02-17 at 8 32 42 PM

purvghori commented 1 year ago

Same error occurred

Screenshot 2023-02-18 at 8 52 50 PM
chetu-ko commented 1 year ago

This error may be due to an unsupported Gradle version. As per the Jitsi SDK 7+ it uses Gradle version 7.4. Please update your Gradle version probably error may go.

purvghori commented 1 year ago

@chetu-ko Thanks for the reply

I update gradle version 7.4 but still getting this Error

chetu-ko commented 1 year ago

Can you please provide the details or screenshot Gradle version?

purvghori commented 1 year ago

Here is my gradle version

Screenshot 2023-02-19 at 9 30 05 PM
chetu-ko commented 1 year ago

have you also changed your classpath value in the android/Gradle.build file? as below

classpath "com.android.tools.build:gradle:7.0.1"

Here you can find the complete explanation of answer how to resolve the SDK issue. https://stackoverflow.com/questions/74814000/jitsi-dependency-not-working-in-2022-in-android-studio

purvghori commented 1 year ago

@chetu-ko Thanks for the help

The app is installed but one more issue with video's black screen #68

if you know anything about this issue please help me

jigar541patel commented 1 year ago

Hi @purvghori are you able to run app now ? can you share me your gradle-wrapper.properties , app/build.gradle ,android/build.gradle and settings.gradle file also flutter version and android studio version that will be really helpful to me.becz after changing to @chetu-ko i am still facing same issue

purvghori commented 1 year ago

@jigar541patel

  1. Update your gradle-wrapper.properties file => distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
  2. Updare your android/Gradle.build file => classpath "com.android.tools.build:gradle:7.0.1"

if you use proguard then remove this line => useProduard true

Screenshot 2023-02-20 at 8 43 36 PM
jigar541patel commented 1 year ago

@purvghori and @chetu-ko I have removed this and changed to distribution url 7.4 and gradle build 7.0.1 but still getting same error Screenshot 2023-02-21 at 4 49 43 PM Screenshot 2023-02-21 at 4 49 26 PM Screenshot 2023-02-21 at 4 49 08 PM Screenshot 2023-02-21 at 4 56 31 PM

and my flutter doctor summary :

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.10, on macOS 11.4 20F71 darwin-x64, locale en-IN) Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.0) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] Connected device (3 available) [✓] HTTP Host Availability

chetu-ko commented 1 year ago

@jigar541patel Did you try running flutter clean after changing the settings?

jigar541patel commented 1 year ago

@chetu-ko yes i tried cleaning but issue still persist.

ccs1428 commented 1 year ago

last 2 days i am in the same issue, any body able to resolve it. @chetu-ko @jigar541patel

jigar541patel commented 1 year ago

issue is with android studio by version updating to Android Studio Electric Eel | 2022.1.1 Patch 2 will work.please try @ccs1428 @chetu-ko @purvghori also refer https://github.com/jitsi/jitsi-meet-sdk-samples for gradle file version reference.