我真的不知道这个问题是从哪里来的,已经尝试了一段时间。当我执行gradle同步时,我不断收到此错误。
错误:无法解析':app @ debug / compileClasspath'的依赖关系:无法解析androidx.legacy:legacy-support-v4:1.0.0。
我什至不知道为什么我收到androidx错误,我什至没有迁移到androidx。这正常吗?
我执行了网上发现的各种修复程序,包括将所有依赖项更新到最新版本。下面我发布了我的应用程序和项目gradle文件
我的项目gradle文件:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.google.gms:google-services:4.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// google()
jcenter()
maven { url "https://jitpack.io" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我的应用gradle文件:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.bahdape.archangels"
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.firebase:firebase-storage:19.1.0'
implementation 'com.firebaseui:firebase-ui-database:6.0.2'
implementation'com.squareup.picasso:picasso:2.71828'
//compile 'com.github.jgabrielfreitas:BlurImageView:1.0.1'
// Stated Fragment
compile 'com.inthecheesefactory.thecheeselibrary:stated-fragment-support-v4:0.10.0'
// Flutterwave implementation
implementation 'com.github.Flutterwave:rave-android:1.0.40'
}