Android 3.0.1
我遇到了DexArchiveMergerException的问题,我发现这是库的问题(实现,编译)。但我找不到要修复的那个。我试图清理并重建。
这是我的build.gradle。 我的依赖项怎么办? 非常感谢:)
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.scsa.project"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
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:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.android.gms:play-services-maps:11.6.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.3'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.3'
implementation 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.3'
implementation 'org.simpleframework:simple-xml:2.7.1'
implementation 'org.springframework.android:spring-android-rest-template:2.0.0.M3'
implementation 'org.springframework.android:spring-android-core:2.0.0.M3'
implementation 'com.android.support:multidex:1.0.0'
}