多个 dex 文件定义 Lcom/google/android/gms/internal/measurement/zzabn
Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn
从今天早上开始,我无法构建我的 Android 应用程序,因为我收到此错误
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,但随后出现另一个错误...
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 还没发布?
我有一个要推送到生产环境的构建,构建应用程序的最佳方式是什么?
请将 google-service
插件更新为:
classpath 'com.google.gms:google-services:3.3.0'
能够使用最新版本的 Firebase 并避免错误。
阅读以下内容了解更多信息:
https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html
(代表问题作者发布解决方案).
删除我 build.build 底部的 com.google.gms.google-services
使其工作。
从今天早上开始,我无法构建我的 Android 应用程序,因为我收到此错误
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,但随后出现另一个错误...
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 还没发布?
我有一个要推送到生产环境的构建,构建应用程序的最佳方式是什么?
请将 google-service
插件更新为:
classpath 'com.google.gms:google-services:3.3.0'
能够使用最新版本的 Firebase 并避免错误。
阅读以下内容了解更多信息:
https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html
(代表问题作者发布解决方案).
删除我 build.build 底部的 com.google.gms.google-services
使其工作。