首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >修正依赖解析错误

修正依赖解析错误
EN

Stack Overflow用户
提问于 2021-07-31 06:00:37
回答 1查看 455关注 0票数 1
代码语言:javascript
复制
plugins {
    id 'com.android.application'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.kali_corporation.yogafitness"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }

> [Blockquote][1]

    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'


    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.google.android.gms:play-services-ads:19.6.0'



    implementation 'com.github.prolificinteractive:material-calendarview:2.0.0'
    implementation 'com.kaopiz:kprogresshud:1.2.0'
    implementation 'com.jakewharton.threetenabp:threetenabp:1.2.1'
}

在模块核心-1.5.0-运行时(androidx.core:

:1.5.0)和support 27.0.2-运行时(com.android.Support:support:27.0.2)中找到的重复类

重复类android.support.v4.app.INotificationSideChannel$Stub发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.app.INotificationSideChannel$Stub$Proxy发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.IResultReceiver发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.IResultReceiver$Stub发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.IResultReceiver$Stub$Proxy发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.ResultReceiver发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.ResultReceiver$1发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.ResultReceiver$MyResultReceiver发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

重复类android.support.v4.os.ResultReceiver$MyRunnable发现在模块核心-1.5.0-运行时(androidx.core:核心:1.5.0)和支持-compat-27.0.2-运行时(com.android.support:support-compat:27.0.2)

转到文档,了解如何修复依赖项解析错误.。

EN

回答 1

Stack Overflow用户

发布于 2022-03-26 15:20:15

嗨,我也遇到过同样的问题(Fix依赖解析错误),对我起作用的解决方案是当我减少。

compileSdkVersion到26

buildToolsVersion至28.0.3

代码语言:javascript
复制
android {

    compileSdkVersion 26

    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "com.letsgo.wifitrigger"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 12
        versionName "1.2"
    }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68599570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档