与GCM库崩溃

时间:2018-04-18 16:25:15

标签: android android-gradle google-cloud-messaging

我需要在我的项目中包含GCM推送通知服务(由于服务器依赖性,我不能使用FCM)。当我关注谷歌开发文档时,我看到了这个错误:

  

04-18 12:09:37.206 17761-17761 /? I / MultiDex:VM具有multidex支持,MultiDex支持库被禁用。   04-18 12:09:37.208 17761-17761 /? D / AndroidRuntime:关闭VM   04-18 12:09:37.211 17761-17761 /? E / AndroidRuntime:致命异常:主要                                                      处理:com.sample.airwatchsdk,PID:17761                                                      java.lang.NoSuchMethodError:没有静态方法zzb(Ljava / lang / Object; Ljava / lang / Object;)Ljava / lang / Object;在课堂Lcom / google / android / gms / common / internal / zzaa;或其超级课程(com.google.android.gms.common.internal.zzaa的声明'出现在/data/app/com.sample.airwatchsdk-itMJY1a4DNFnw-ItRDDjiw==/split_lib_dependencies_apk.apk! classes68.dex)                                                          在com.google.firebase.provider.FirebaseInitProvider.zza(未知来源:3)                                                          在com.google.firebase.provider.FirebaseInitProvider.attachInfo(未知来源:0)                                                          在android.app.ActivityThread.installProvider(ActivityThread.java:6239)                                                          在android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)                                                          在android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)                                                          在android.app.ActivityThread.-wrap1(未知来源:0)                                                          在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1656)                                                          在android.os.Handler.dispatchMessage(Handler.java:106)                                                          在android.os.Looper.loop(Looper.java:164)                                                          在android.app.ActivityThread.main(ActivityThread.java:6494)                                                          at java.lang.reflect.Method.invoke(Native Method)                                                          在com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run(RuntimeInit.java:438)                                                          在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)   块引用

有人可以帮帮我吗?

我的gradle依赖项: 应用级别:

classpath 'com.google.gms:google-services:3.1.0'

项目级别:

        compile 'com.google.android.gms:play-services-safetynet:11.4.2'

        compile "com.mixpanel.android:mixpanel-android:4.+"

        compile "com.google.android.gms:play-services-gcm:11.4.2"

        compile 'com.google.android.gms:play-services-auth:11.4.2'

0 个答案:

没有答案