多个dex文件定义了Lcom/google/android/gms/internal/measurement/zzabn [英] Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn

查看:92
本文介绍了多个dex文件定义了Lcom/google/android/gms/internal/measurement/zzabn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从今天早上开始,由于出现此错误,我无法构建Android应用程序

Since this morning I cannot build my Android app because I get this error

出了什么问题:任务':app:transformDexArchiveWithDexMergerForDebug'的执行失败. com.android.build.api.transform.TransformException:com.android.dex.DexException:多个dex文件定义 Lcom/google/android/gms/internal/measurement/zzabn;

What went wrong: Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'. com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn;

我尝试将Firebase版本相应地提高到15.0.2,但随后出现另一个错误...

I have tried bumping the Firebase versions accordingly to 15.0.2 but then I get an other error...

Task:app:processDebugGoogleServices找到com.google.android.gms:play-services-maps:15.0.0,但版本为15.0.2 google-services插件需要.

Task :app:processDebugGoogleServices Found com.google.android.gms:play-services-maps:15.0.0, but version 15.0.2 is needed for the google-services plugin.

com.google.android.gms:play-services-maps:15.0.2尚未发布?

com.google.android.gms:play-services-maps:15.0.2 is not even released yet?

我有一个要推向生产的版本,构建该应用程序的最佳方法是什么?

I have a build to push to production, what is the best way to build the app?

推荐答案

请将google-service插件更新为:

classpath 'com.google.gms:google-services:3.3.0'

能够使用最新版本的Firebase并避免错误.

to be able to use the latest version of Firebase and to avoid the errors.

阅读以下内容以获取更多信息:

Read the following for more information:

https://android-developers.googleblog. com/2018/05/announcing-new-sdk-versioning.html

编译无法完成:程序类型已经存在:com.google.android.gms.internal.measurement.zzabn

这篇关于多个dex文件定义了Lcom/google/android/gms/internal/measurement/zzabn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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