任务':app:transformClassesWithDexForRelease'的执行失败 [英] Execution failed for task ':app:transformClassesWithDexForRelease'

查看:76
本文介绍了任务':app:transformClassesWithDexForRelease'的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

*

错误:任务':app:transformClassesWithDexForRelease'的执行失败.

Error:Execution failed for task ':app:transformClassesWithDexForRelease'.

com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexException:多个dex文件定义了Lcom/google/firebase/iid/zzb;

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/firebase/iid/zzb;

* 描述:- 在调试期间,它可以正常工作,但是当尝试在错误上方生成apk Android Studio错误时.

* DESCRIPTION:- During Debug it works fine however when trying to generate apk Android studio error above Error.

推荐答案

此错误是由于您可能在项目中使用的任何Google服务模块的gradle版本不同.

This error is because of the different version of gradle for any of the google service module that you might be using in your project.

检查您的Build.gradle文件和版本,它们必须相同.

Check your Build.gradle file and the versions, they must be same.

这篇关于任务':app:transformClassesWithDexForRelease'的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆