我正在处理2015年以来的一个旧项目,android studio希望我一直不断更新并更新,最终出现此错误:
我尝试了在stackoverflow上找到的多个解决方案,但都没有起作用-
尝试将以下代码添加到应用级gradle-
configurations.all {exclude group: 'com.android.support', module: 'support-v4'}
尝试将此行添加到依赖项-
implementation 'com.android.support:support-v4:27.1.0'
我不确定该怎么办。
我的应用级别优惠-
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.parse.starter"
minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation 'com.android.support:appcompat-v7:26.0.0'
implementation 'com.parse.bolts:bolts-tasks:1.3.0'
// implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.parse:parse-android:1.13.0'
implementation 'com.google.android.gms:play-services:9.4.0'
implementation 'com.android.support:multidex:1.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}
我的项目级别gradle-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}
ext {
compileSdkVersion = 22
buildToolsVersion = "23.0.1"
minSdkVersion = 9
targetSdkVersion = 23
}