skrafft / react-native-jitsi-meet

React native wrapper for Jitsi Meet SDK
Apache License 2.0
285 stars 349 forks source link

Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized #406

Open Hamza-Ali333 opened 1 year ago

Hamza-Ali333 commented 1 year ago

"react": "18.1.0", "react-native": "0.70.5", "react-native-jitsi-meet": "^2.3.1" when i m trying to build "APK" this unauthorized error is occurring every time

tomamatics commented 1 year ago

Same here. Build failed with Could not HEAD 'https://www.jitpack.io/org/jitsi/react/jitsi-meet-sdk/5.1.0/jitsi-meet-sdk-5.1.0.pom'. Received status code 401 from server: Unauthorized

"react": "18.1.0", "react-native": "0.70.6", "react-native-jitsi-meet": "^2.3.1"

estani commented 1 year ago

tl;dr; add the github maven repo instead of jitpack (or both https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-android-sdk/)

// android/build.gradle
allprojects {
    repositories {
        mavenLocal()
        google()
        jcenter()

        // ******* add this line *****
        maven {
            url 'https://github.com/jitsi/jitsi-maven-repository/raw/master/releases'
        }
    }
}

// android/app/build.gradle
dependencies {
    implementation('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
    //...
}

That stills break a dependency on my notifee version... which I can't manage to find why, but it might work for you.