com.android.builder.dexing.DexArchiveBuilderException:分解时出错

com.android.builder.dexing.DexArchiveBuilderException:分解时出错,第1张

概述我在尝试运行我的项目时遇到了这个问题-com.android.builder.dexing.DexArchiveBuilderException:Failedtoprocess.gradle\caches\transforms-1\files-1.1\firebase-analytics-impl-11.8.0.aar\0e3311be69809df8820438f9666651f5\jars\classes.jarcom.android.builder.d

我在尝试运行我的项目时遇到了这个问题-

com.android.builder.dexing.DexArchiveBuilderException: Failed to process .gradle\caches\transforms-1\files-1.1\firebase-analytics-impl-11.8.0.aar\0e3311be69809df8820438f9666651f5\jars\classes.jar
com.androID.builder.dexing.DexArchiveBuilderException: Error while dexing.
com.androID.tools.r8.CompilationFailedException: Compilation Failed to complete
com.androID.tools.r8.utils.AbortException: Error: Type com.Google.androID.gms.common.internal.zzf is referenced as an interface from com.Google.androID.gms.internal.zzcku.

Caused by: com.androID.builder.dexing.DexArchiveBuilderException: Failed to process Firebase-analytics-impl-11.8.0.aar\jars\classes.jar

build.gradle

apply plugin: 'com.androID.application'androID {    compileSdkVersion 28    defaultConfig {        applicationID "com.xxxxxx.xxxx"        minSdkVersion 17        targetSdkVersion 28        versionCode 171312        versionname "1.2"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        project.archivesBasename = "doctor"        vectorDrawables.useSupportlibrary = true        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled true            proguardfiles filetree(dir: "proguard", include: ["*.pro"]).asList().toArray()            proguardfiles getDefaultProguardfile('proguard-androID.txt')        }        deBUG {            MinifyEnabled false            proguardfiles filetree(dir: "proguard", include: ["*.pro"]).asList().toArray()            proguardfiles getDefaultProguardfile('proguard-androID.txt')        }    }    flavorDimensions "environment"    productFlavors {        staging {            applicationIDSuffix ".staging"        }        production {        }        development {            applicationIDSuffix ".development"        }    }    dataBinding {        enabled = true    }    buildToolsversion '28.0.3'    compileOptions {        sourceCompatibility JavaVersion.VERSION_1_8        targetCompatibility JavaVersion.VERSION_1_8    }}ext {    retrofitVersion = '2.3.0'    firebaseVersion = '15.0.2'}dependencIEs {    implementation "com.androID.support:appcompat-v7:${rootProject.ext.supportlibVersion}"    implementation "com.androID.support:design:${rootProject.ext.supportlibVersion}"    implementation "com.androID.support:support-v13:$rootProject.ext.supportlibVersion"    implementation "com.androID.support:support-compat:${rootProject.ext.supportlibVersion}"    implementation 'com.Google.firebase:firebase-messaging:17.3.4'    implementation project(path: ':quickblox')}

QuickBlox模块的build.gradle

apply plugin: 'com.androID.library'androID {    compileSdkVersion 28    defaultConfig {        minSdkVersion 17        targetSdkVersion 28        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"    }    flavorDimensions "default"    defaultPublishConfig "doctorDeBUG"    publishNonDefault true    productFlavors {        doctor {            buildConfigFIEld "boolean", "IS_DOCTOR", "true"            versionnameSuffix "-doctor"        }        patIEnt {            buildConfigFIEld "boolean", "IS_DOCTOR", "false"            versionnameSuffix "-patIEnt"        }    }    androID {        compileOptions {            sourceCompatibility JavaVersion.VERSION_1_8            targetCompatibility JavaVersion.VERSION_1_8        }    }}dependencIEs {    implementation filetree(dir: 'libs', include: ['*.jar'])    implementation project(':library')    implementation 'com.androID.support:appcompat-v7:28.0.0'    implementation 'com.androID.support:support-v4:28.0.0'    implementation 'com.quickblox:quickblox-androID-sdk-vIDeochat-webrtc:3.8.1'    implementation 'com.facebook.fresco:fresco:1.8.1'    API('com.quickblox:quickblox-androID-sdk-messages:3.8.1')}

我在gradle.propertIEs中添加了这个androID.enableD8.desugaring = true.不过,我也面临着同样的问题.

有什么办法吗?

解决方法:

请同时添加此依赖项

implementation 'com.Google.firebase:firebase-core:16.0.7'

希望这个问题能解决.

总结

以上是内存溢出为你收集整理的com.android.builder.dexing.DexArchiveBuilderException:分解出错全部内容,希望文章能够帮你解决com.android.builder.dexing.DexArchiveBuilderException:分解时出错所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1081712.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存