云公司的FireStore:DexArchiveMergerException无法合并DEX

taeseok出来:

当我包括:

编译 'com.firebaseui:火力-UI-公司的FireStore:3.1.0'

构建失败。公司的FireStore 3.0.0版本是同样的结果。

没有这个代码,构建是成功的。

是否有重复的模块?请帮我。

错误:执行失败的任务“:应用程序: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'

    // FirebaseUI for Firebase Auth
    compile 'com.firebaseui:firebase-ui-auth:3.1.0'

    // Required only if Facebook login support is required
    compile 'com.facebook.android:facebook-login:4.27.0'

    // Required only if Twitter login support is required
    compile("com.twitter.sdk.android:twitter-core:3.0.0@aar") { transitive = true }

    // glide
    compile 'com.github.bumptech.glide:glide:4.3.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1'

    // FirebaseUI Storage
    compile 'com.firebaseui:firebase-ui-storage:3.1.0'

    // Firebase cloud message
    compile 'com.google.firebase:firebase-messaging:11.4.2'

    // FirebaseUI for Cloud Firestore
    compile 'com.firebaseui:firebase-ui-firestore:3.1.0'
}

// firebase
apply plugin: 'com.google.gms.google-services'

buildscript {

    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        //firebase
        classpath 'com.google.gms:google-services:3.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()


        // glide
        mavenCentral()
        maven { url 'https://maven.google.com' }

        // firebase twitter login
        maven { url 'https://maven.fabric.io/public' }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
亚历克斯·马莫:

有理智最多你的代码错误。我数天前有同样的问题,我解决很简单地是这样的:

1. Clean
2. Rebuild

不要忘了也有下面的代码行中的build.gradle文件(模块:应用程序)。

android {
    defaultConfig {
       multiDexEnabled true
    }
}

如果仍然不能正常工作上面解释的,只是delete the .gradle directoryrun your app again

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

DexArchiveMergerException:无法合并dex

Androidx 迁移获取 DexArchiveMergerException:无法合并 dex

Firebase Firestore库的原因:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex

无法合并Dex-Android Studio 3.0.1 DexArchiveMergerException

DexArchiveMergerException:无法合并dex-Android Studio 3.0稳定版

com.android.builder.dexing.DexArchiveMergerException:无法合并dex-Android Studio 3.0稳定

com.android.builder.dexing.DexArchiveMergerException:无法在ionic 5中合并dex

执行失败 ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' com.android.builder.dexing.DexArchiveMergerException: 无法合并 dex

了java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法在Android Studio中3.0合并DEX

检索复杂的文件从云公司的FireStore

无法合并dex

android dex无法合并

无法合并-Dex

Android错误:无法合并dex

无法将 dex 与 androidTestImplementation 合并

无法合并dex Ionic 3

无法合并dex gradle 3.0.1

引起:com.android.builder.dexing.DexArchiveMergerException:合并dex档案时出错

com.android.builder.dexing.DexArchiveMergerException:同时合并DEX档案错误:

使用“阵列包含”查询云公司的FireStore社会媒体结构

如何在移动云计算公司的FireStore文档?

无法解决**无法合并dex错误**

无法使用LiveParse查询合并dex

如何解决无法合并dex

添加依赖后无法合并dex

无法合并Dex错误:Android Studio 3.0

无法合并Dex-Android Studio 3.0

导入模块时无法合并dex

无法在 Android Studio 3.0 中合并 Dex