jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
270 stars 235 forks source link

can not add library to project "can't download failed" #216

Open Akshar062 opened 6 months ago

Akshar062 commented 6 months ago

i have android java project want to use libraries and i have follow all step and when i run my app it was showing "download jitsi-meet-sdk " for half hour then it failed Untitled

this is in my build log

image

`plugins { id 'com.android.application' id 'com.google.gms.google-services' }

android { namespace 'com.akshar.videochat' compileSdk 34

defaultConfig {
    applicationId "com.akshar.videochat"
    minSdk 24
    targetSdk 34
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {

        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {

implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.firebase:firebase-auth:22.3.0'
implementation 'com.google.firebase:firebase-firestore:24.10.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

apply plugin: 'com.google.gms.google-services'
implementation 'com.google.android.gms:play-services-auth:20.7.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'

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

}`

this is my setting.gradle

`pluginManagement { repositories { google() mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { maven { url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" } google() mavenCentral() maven { url 'https://www.jitpack.io' } } }

rootProject.name = "Video Chat" include ':app' `

in the end after 30 min i get

Failed to resolve: org.jitsi.react:jitsi-meet-sdk:8.2.2 Show in Project Structure dialog Show Details Affected Modules: app

saghul commented 6 months ago

Can you try to use the latest version? That is 8.6.0.