当我包括:
编译'com.firebaseui:firebase-ui-firestore:3.1.0'
构建失败.firestore版本3.0.0是相同的结果.
没有这个代码,构建就是成功的.
有重复的模块吗?请帮我.
错误:任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败.
java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.android"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// firebase
resConfigs "auto"
}
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.constraint:constraint-layout:1.0.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'
// volley
compile 'com.android.volley:volley:1.0.0'
// firebase, map, location
implementation 'com.google.android.gms:play-services-maps:11.4.2'
implementation 'com.google.android.gms:play-services-location:11.4.2'
// firebase storage
compile 'com.google.firebase:firebase-storage:11.4.2'
// …Run Code Online (Sandbox Code Playgroud)