Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to implement SDK v7.0.0 & v7.0.1 in Android #163

Open
NilabhB opened this issue Dec 17, 2022 · 15 comments
Open

Not able to implement SDK v7.0.0 & v7.0.1 in Android #163

NilabhB opened this issue Dec 17, 2022 · 15 comments

Comments

@NilabhB
Copy link

NilabhB commented Dec 17, 2022

Not able to implement to recent versions of jitsi SDK, use to get gradle sync error. currently stable usable SDK is v6.2.2,
In v6.2.2, youtube video streaming doesn't work, it's not related to bandwidth, there's some problem related to video playback. But in the jitsi-meet app it works perfectly fine (Not talking about the youtube live stream), not sure what's the issue with video playback.

@saghul
Copy link
Member

saghul commented Dec 18, 2022

What error do you get with SDK 7.x?

@NilabhB
Copy link
Author

NilabhB commented Dec 18, 2022

jitsi_v7 0 1_error

The gradle will build for around 6 mins & then get fail after that. Here's a screenshot I am attaching it. It's same for both v7.0.0 & v7.0.1

@saghul
Copy link
Member

saghul commented Dec 18, 2022

Did you add our maven repo?

@NilabhB
Copy link
Author

NilabhB commented Dec 18, 2022

Yes, I did. My app is already running well in v6.2.2. I just wanted to updated the Jitsi SDK.

maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }

It's already added.

@saghul
Copy link
Member

saghul commented Dec 18, 2022

What Gradle version do you have?

@NilabhB
Copy link
Author

NilabhB commented Dec 18, 2022

gradle_version_screenshot

I am using the most updated version of Android Studio as of today(18/12/2022). The Gradle version is 7.4

@NilabhB
Copy link
Author

NilabhB commented Dec 19, 2022

Hi @saghul,

Any solutions on this?

@Bresiu
Copy link

Bresiu commented Dec 22, 2022

It seems that https://github.com/jitsi/jitsi-maven-repository/raw/master/releases is not accessible anymore. I cannot sync dependencies.
When I try to paste url in a browser in navigates me to https://github.com/jitsi/jitsi-maven-repository/tree/master/releases but changing raw to tree in gradle file do not work.

I think that raw is now url parameter: ?raw=true

@NilabhB
Copy link
Author

NilabhB commented Dec 22, 2022

Hi @saghul & @Bresiu,

I found a solution to these issues, the repos are actually good & still accessible, the problem is with the gradle versions or probably the new versions of Android Studios.

In recent versions of Android Studios, allprojects{} might not be found in build.gradle. In that case, the repository goes into the settings.gradle file in the root of your project (Modify the code in settings.gradle):

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }
        maven {
            url "https://maven.google.com"
        }
    }
}

After this in module build.gradle use dependency

implementation ('org.jitsi.react:jitsi-meet-sdk:6.2.2') { transitive = true }

Your application will be good with jitsi SDK v6.2.2.

Note: Jitsi SDK v7.0.0 or v7.0.1 will not work simply this way! SDK versions 7.x seems to have an issue with gradle versions. To implement Jitsi SDK v7.x check your gradle version first & make sure it is set to gradle v7.4.2.

How to fix Gradle Version for this project?

  • Go to IDE and Project Settings > Project Structure > Project

  • Set Gradle Version to 7.4.2 (Please note, if you choose above or below v7.4.2, it might not work)

Now sync the project with:

implementation ('org.jitsi.react:jitsi-meet-sdk:7.0.1') { transitive = true }

You are all set with the latest version of Jitsi SDK as of 22/12/2022.

Let me know if this solved your problem, we can close this issue, else I will provide a different approach.

Note: Even with the latest version of Jitsi SDK, the video-sharing feature will not work. I don't know what is the issue. In the original Jitsi Meet App it just works super fine.

You can check my latest Personal Project based on Jitsi SDK for Android: https://github.com/NilabhB/SkyMeet
App Link: https://play.google.com/store/apps/details?id=com.skymeet.videoConference

Good Luck!

@saghul
Copy link
Member

saghul commented Dec 22, 2022

Thanks for the writeup!

We haven't really changed much from SDK 6 to 7, we bumped the major to indicate a backwards compatibility change.

This may have to do with the Gradle version, including the plugin version. We won't have time to look into this before the end of the year, sorry.

@NilabhB
Copy link
Author

NilabhB commented Dec 22, 2022

Hey,

Thank you so much for the response @saghul.

I have been helping people on stackoverflow & here as well regarding maven repo implementation. Therefore I made a pull request: jitsi/handbook#404

This will solve the problem for all. Would you mind merging it, please?

@saghul
Copy link
Member

saghul commented Dec 22, 2022

Merged, thanks for the reminder!

@NilabhB
Copy link
Author

NilabhB commented Dec 22, 2022

Oh, I am so glad. This was my first pull request probably. Thanks to you. Looking forward to contribute more.

@saghul
Copy link
Member

saghul commented Dec 22, 2022

Very happy to hear this!

@MacBook1234567890
Copy link

pluginManagement {
repositories {
google()
mavenCentral()

gradlePluginPortal()

(url) }
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" // i got error on this line
}
maven {
url "https://maven.google.com" // i got error on this line
}

}

}

rootProject.name = "first"
include(":app")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants