【问题标题】:Error IntentService useing gcm错误 IntentService 使用 gcm
【发布时间】:2016-07-24 13:10:26
【问题描述】:

我正在使用这个Tutorial,但在运行应用程序崩溃应用程序后给我这个错误。

错误:

FATAL EXCEPTION: IntentService[]
Process: package-name, PID: 11869
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.android.gms.iid.zzd' appears in /data/data/yadbegir.jfa.mansoor.com.yadbegir/files/instant-run/dex/slice-realm-optional-api_82aa9dab5d973e04cc1850ef40d4e3808a75f9c1-classes.dex)
at com.google.android.gms.iid.zzd.zzdL(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.zzd.<init>(Unknown Source)
at com.google.android.gms.iid.InstanceID.zza(Unknown Source)
at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)
at package-name.service.GCMRegistrationIntentService.registerGCM(GCMRegistrationIntentService.java:33)
at package-name.service.GCMRegistrationIntentService.onHandleIntent(GCMRegistrationIntentService.java:25)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

【问题讨论】:

  • 请帮忙解决这个问题

标签: android push-notification google-cloud-messaging


【解决方案1】:

尝试更新Google Play Services library to version 9.0.2

Google Play 服务 9.0.1 版现已推出。此版本修复了 9.0.0 版本的以下问题:

【讨论】:

    猜你喜欢
    • 2019-01-14
    • 1970-01-01
    • 2016-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-22
    相关资源
    最近更新 更多