gpt4 book ai didi

java - 添加 Google Play 服务和 Proguard 时出现警告?

转载 作者:太空宇宙 更新时间:2023-11-04 10:05:15 25 4
gpt4 key购买 nike

Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [com/google/android/gms/internal/measurement/zzkf] (with 1 known super classes) and [com/google/android/gms/internal/measurement/zzko] (with 1 known super classes)

我的 proguard 规则:

-keep class com.google.android.** { *; }
-dontwarn com.google.android.**

enter image description here

最佳答案

可能的原因是使用了不同的 Play Service 库版本。确保您对所有包含的库使用相同的版本。

implementation 'com.google.android.gms:play-services-analytics:16.0.1'
implementation 'com.google.android.gms:play-services-auth:11.8.0' // should be the same version

某些版本具有不兼容的 API 和实现,导致混淆器检测到冲突。忽略它们可能会导致运行时崩溃。

如果您已在各处使用相同版本,则它可能是您的第三方依赖项之一,其中包括内部 Play 服务的另一个版本。

关于java - 添加 Google Play 服务和 Proguard 时出现警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53019201/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com