我面临android 3编译错误 . 我的项目成功构建但是当我运行时遇到以下错误
引起:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:合并dex存档时出错:
以下是我的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.standardcoach.ticketing"
minSdkVersion 16
targetSdkVersion 25
multiDexEnabled true
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
useLibrary 'org.apache.http.legacy'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:25.4.0'
implementation 'com.android.support:design:25.4.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:support-annotations:25.4.0'
implementation 'com.android.support:cardview-v7:25.4.0'
implementation 'com.android.support:support-compat:25.4.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation ('com.google.zxing:core:3.3.2'){
exclude module: 'support-v4'
}
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation group: 'com.journeyapps', name: 'zxing-android-embedded', version: '3.6.0'
implementation 'com.embarkmobile:zxing-android-minimal:1.2.1@aar'
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'
}
android {
}