简体   繁体   English

找不到[com / google / android / gms / internal / zzol]的普通超类

[英]Can't find common super class of [com/google/android/gms/internal/zzol]

I want to build the APK file, but I get this error when using Proguard: 我想构建APK文件,但是使用Proguard时出现此错误:

Can't find common super class of [com/google/android/gms/internal/zzol] (with 2 known super classes) and [com/google/android/gms/internal/zzoj] (with 2 known super classes) 找不到[com / google / android / gms / internal / zzol](具有2个已知的超类)和[com / google / android / gms / internal / zzoj](具有2个已知的超类)的公共超类。

This is my gradle: 这是我的成就:

dependencies {
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support:recyclerview-v7:27.0.2'
    implementation 'com.android.support:cardview-v7:27.0.2'
    implementation 'com.android.support:design:27.0.2'
    implementation ('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
        exclude module: 'support-v4'
    }

    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.github.shell-software:fab:1.1.2'
    implementation 'com.alirezaafkar:sundatepicker:2.0.8'
    implementation 'me.dm7.barcodescanner:zxing:1.9'

    implementation 'com.google.android.gms:play-services-maps:16.0.0'
    implementation 'com.google.android.gms:play-services-gcm:16.0.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.alirezaafkar:sundatepicker:2.0.8'
    implementation 'me.cheshmak:analytics:2.0.+'
}

This is my proguard for trying to resolve the error, but it's not working: 这是我试图解决该错误的保障,但是它没有用:

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

How can I fix this? 我怎样才能解决这个问题?

This might be caused by conflicting versions of Play Service libraries. 这可能是由于Play服务库版本冲突造成的。 Make sure you are using the same version everywhere, in your case 16.0.0. 确保在所有情况下都使用相同版本,例如16.0.0。

Since you already use 16.0.0 for all of them, it's probably one of your other dependencies that includes an older version of a Play Service library on its own. 由于您已经对所有这些都使用16.0.0,因此它可能是您自己的其他依赖项之一,其中包括旧版的Play服务库。 So you have to find an updated version of that dependency, or you can try to exclude the Play Service library included by the dependency: 因此,您必须找到该依赖项的更新版本,或者可以尝试排除依赖项所包含的Play服务库:

implementation ('com.some.library:module:1.2.3') {
    exclude group: 'com.google.android.gms', module: 'play-services-...'
}

where play-services-... is the conflicting library included by the other dependency. 其中play-services-...是另一个依赖项包含的冲突库。

暂无
暂无

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

相关问题 Proguard - 找不到[com / google / android / gms / d / kl]的常见超类 - Proguard - Can't find common super class of [com/google/android/gms/d/kl] 没有找到类“com.google.android.gms.common.internal.zzaa” - Didn't find class “com.google.android.gms.common.internal.zzaa” 在路径上没有找到类“com.google.android.gms.common.internal.zzbq”:DexPathList - Didn't find class “com.google.android.gms.common.internal.zzbq” on path: DexPathList ClassNotFoundException找不到类“ com.google.android.gms.common.internal.zzbq - ClassNotFoundException Didn't find class "com.google.android.gms.common.internal.zzbq 放置自动完成未找到类“ com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable” - Places AutoComplete Didn't find class “com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable” com.google.android.gms.internal.zzhu:找不到引用的类android.security.NetworkSecurityPolicy - com.google.android.gms.internal.zzhu: can't find referenced class android.security.NetworkSecurityPolicy 原因:java.lang.ClassNotFoundException:找不到类“ com.google.android.gms.common.internal.zzbq” - Caused by: java.lang.ClassNotFoundException: Didn't find class “com.google.android.gms.common.internal.zzbq” 原因:java.lang.ClassNotFoundException:在路径上找不到类“ com.google.android.gms.common.internal.zzbq” - Caused by: java.lang.ClassNotFoundException: Didn't find class “com.google.android.gms.common.internal.zzbq” on path 非法调用超级无效 com.google.android.gms.common.api.internal.BasePendingResult.setResult - Illegal invoke-super to void com.google.android.gms.common.api.internal.BasePendingResult.setResult 某些设备出错 - 无法找到“com.google.android.gms.measurement.internal.zzz”类 - Error on some devices - couldn't find class 'com.google.android.gms.measurement.internal.zzz'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM