简体   繁体   English

Proguard错误:“无法找到…的普通超类”

[英]Proguard error: “Can't find common super class of …”

I'm getting this error while building my app in Android Studio: 在Android Studio中构建我的应用时出现此错误:

Unexpected error while performing partial evaluation:
  Class       = [com/google/android/gms/internal/zznc]
  Method      = [zza(Lcom/google/android/gms/internal/zzmk;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/google/android/gms/internal/zznh;Lcom/google/android/gms/internal/zzgl;Lcom/google/android/gms/internal/zznb;)Lcom/google/android/gms/internal/zzmn;]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [com/google/android/gms/internal/zzmn] (with 1 known super classes) and [java/lang/String] (with 2 known super classes))
Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [com/google/android/gms/internal/zzmn] (with 1 known super classes) and [java/lang/String] (with 2 known super classes)
:analytics_test_app:transformClassesAndResourcesWithProguardForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':analytics_test_app:transformClassesAndResourcesWithProguardForDebug'.
> Job failed, see logs for details

How can I solve that? 我该如何解决?

Do you have different versions of different Play Service libraries? 您是否有不同版本的不同Play服务库? Make sure you use the same version for all libraries: 确保对所有库使用相同的版本:

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

Some versions have different implementations and APIs, which causes internal conflicts that also affects Proguard. 某些版本具有不同的实现和API,这会导致内部冲突,进而影响Proguard。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM