修复依赖项解析错误


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'
}

复制类android.support.v4.app。在模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)中发现的INotificationSideChannel
复制类android.support. 4.0 .app。在core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)模块中发现$Stub
重复类android.support. 4.0 .app。在core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)模块中发现的代理
重复类android.support. 4.0 .os。IResultReceiver发现于模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)
重复类android.support. 4.0 .os。IResultReceiver$Stub在模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)中找到
重复类android.support.v4.os。IResultReceiver$Stub$Proxy在模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)中找到
重复类android.support. 4.0 .os。在core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)模块中发现的ResultReceiver
重复类android.support. 4.0 .os。ResultReceiver$1发现于模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)
重复类android.support. 4.0 .os。ResultReceiver$MyResultReceiver发现于模块core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)
重复类android.support.v4.os。在core-1.5.0-runtime (androidx.core:core:1.5.0)和support-compat-27.0.2-runtime (com.android.support:support-compat:27.0.2)模块中发现了$MyRunnable

查看文档,了解如何修复依赖项解析错误。

嗨,我也遇到了同样的问题(修复依赖解析错误),解决方案对我来说是当我减少

compileSdkVersion26日

buildToolsVersion28.0.3

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.letsgo.wifitrigger"
minSdkVersion 15
targetSdkVersion 26
versionCode 12
versionName "1.2"
}

最新更新