问题描述
从今天早上开始,我无法构建我的 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;
我已尝试将 Firebase 版本相应地提高到 15.0.2,但随后出现其他错误...
I have tried bumping the Firebase versions accordingly to 15.0.2 but then I get an other error...
任务 :app:processDebugGoogleServices 找到 com.google.android.gms:play-services-maps:15.0.0,但版本 15.0.2需要 google-services 插件.
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/annoucing-new-sdk-versioning.html
编译未能完成:程序类型已存在:com.google.android.gms.internal.measurement.zzabn
这篇关于多个dex文件定义Lcom/google/android/gms/internal/measurement/zzabn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!