skip to Main Content

I tried changing the compilesdk and mindsdk versions as told here. I read all the other posts regarding the same but none worked so far. I have looked at the previous answers ans1 and ans2 . They didn’t helped.

When I try to run the project it throws multplie errors. I think the main problem is because of this one

Could not find any matches for org.jitsi.react:jitsi-meet-sdk:3.+ as no versions of org.jitsi.react:jitsi-meet-sdk are available.

error1

build.gradle(My application)

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
        }
    }

    dependencies {
        classpath "com.android.tools.build:gradle:7.0.4"
        classpath 'com.google.gms:google-services:4.3.10'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

build.gradle(app)

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

android {
    compileSdk 30

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdk 21
        targetSdk 30
        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.2.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-common-ktx:20.0.0'
    implementation 'com.google.firebase:firebase-firestore:24.0.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation platform('com.google.firebase:firebase-bom:29.0.3')
    implementation ('org.jitsi.react:jitsi-meet-sdk:3.+') { transitive = true }

}

Any help is appreciated.

4

Answers


  1. Chosen as BEST ANSWER

    I find a workaround for this. You've to paste the maven URL into settings.gradle file. Some other user was facing a problem similar to this here . I did the same and it's working fine.

    settings.gradle


  2. +1 / Failed to resolve: org.jitsi.react:jitsi-meet-sdk:3.+

    5 min
    I had added the maven dependency in the wrong place. It goes in the project gradle, under allprojects->repositories.

    • new fail
      A problem occurred evaluating root project ‘My Application’.

    Build was configured to prefer settings repositories over project repositories but repository ‘maven’ was added by build file ‘build.gradle’

    Login or Signup to reply.
  3. For me the problem was with the SDK version

    I replaced this line

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

    with this line

    implementation ('org.jitsi.react:jitsi-meet-sdk:5.1.0') { transitive = true }
    
    Login or Signup to reply.
  4. If you are using React-Native < 0.60, you should use a version < 2.0.0.
    For versions higher than 2.0.0, you need to add the following piece of code in your metro.config.js file to avoid conflicts between react-native-jitsi-meet and react-native in metro bundler.

    const blacklist = require(‘metro-config/src/defaults/blacklist’);
    module.exports = {
    resolver: {
    blacklistRE: blacklist([
    /ios/Pods/JitsiMeetSDK/Frameworks/JitsiMeet.framework/assets/node_modules/react-native/.*/,
    ]),
    },
    };

    ref: https://github.com/skrafft/react-native-jitsi-meet

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search