无法解析: com.android.support:appcompat-v7:31.0.0

3

我正在尝试将Jitsi Meet SDK添加到我的Android项目中。

我已经使用以下代码实现了SDK: implementation('org.jitsi.react:jitsi-meet-sdk:5.0.2') { transitive = true },并且使用以下maven地址:

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

但是这会导致错误:

Failed to resolve: com.github.MatrixFrog:android-scalablevideoview:v1.0.4-Packet

我尝试通过添加maven jitpack.io来解决这个问题,但仍然报错:

Failed to resolve: com.android.support:appcompat-v7:31.0.0 despite implement

请问如何解决这个问题?请求帮助。

我的settings.gradle文件如下:

pluginManagement {

repositories {
    gradlePluginPortal()
    google()
    mavenCentral()
}

依赖解析管理 {

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

}

build.gradle(:app)

plugins {

id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.gms.google-services'

}

安卓 {

compileSdk 31
buildToolsVersion "31.0.0"
defaultConfig {
    applicationId "kma.longhoang.kmaelearning"
    minSdk 24
    targetSdk 31
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
    viewBinding true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}

依赖项 {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-messaging-ktx:23.0.4'
implementation 'com.google.firebase:firebase-firestore-ktx:24.1.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation platform('com.google.firebase:firebase-bom:29.1.0')
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.6'
implementation('org.jitsi.react:jitsi-meet-sdk:5.0.2') { transitive = true }
implementation 'com.android.support:appcompat-v7:31.0.0'

}


V31不存在。 - Gabriele Mariotti
3个回答

3

我的建议是实现 com.android.support:appcompat-v7:31.0.0 并通过将以下行添加到您的gradle.properties 文件来启用 jetifire。

android.enableJetifier=true

它起作用了!我的问题已经解决了。谢谢。 - Long Hoàng Gia
还适用于 implementation 'androidx.appcompat:appcompat:1.4.2' - Reejesh
1
这是错误的。V31不存在。 - Gabriele Mariotti

0

尝试这个,我也遇到了Jitsi的同样问题,用这个方法解决了。

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

ADD THIS code--------------------
  //noinspection JcenterRepositoryObsolete
        jcenter() {
            content {

                includeModule("com.yqritc", "android-scalablevideoview")
            }
        }
---------------------till Here------------
    }
    }

0
支持自由的最新版本是v28。版本v31不存在。

只需删除依赖项:

implementation 'com.android.support:appcompat-v7:31.0.0'

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接