0

我正在构建一个笔记应用程序,当我尝试运行该应用程序时突然出现此错误。

错误:

使用 groupId 'com.android.support' 和 'androidx.*' 的依赖不能合并但是发现 'com.android.support:appcompat-v7:22.0.0' 和 'androidx.constraintlayout:constraintlayout:2.0.4' 不兼容依赖关系

这是我的 build.graddle

plugins {
    id 'com.android.application'
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.bundgaard.rememory"
        minSdkVersion 26
        targetSdkVersion 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.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-auth:21.0.1'
    implementation 'com.google.firebase:firebase-storage:20.0.0'
    implementation 'com.google.firebase:firebase-firestore:23.0.1'
    implementation 'org.jetbrains:annotations:21.0.1'
    implementation 'co.roverlabs:picasso:2.5.2'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation platform('com.google.firebase:firebase-bom:28.0.1')
}

我不知道这两个 groupId 的冲突在哪里......

4

1 回答 1

2

co.roverlabs:picasso:2.5.2是Square 的 Picasso的一个非常过时的分支。它依赖于来自 Google 的类似过时的支持库。切换到毕加索的官方版本可能会有所帮助,特别是如果它是最新的。

于 2021-06-05T18:30:45.757 回答