在为GCM获取令牌时遇到身份验证错误

时间:2015-11-05 10:15:14

标签: android google-cloud-messaging avd

我正在尝试实施一个基本客户端,以根据https://developers.google.com/cloud-messaging/android/start中的教程接收GCM通知。

运行应用程序时,我在日志中看到以下错误:

11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:无法完成令牌刷新 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:java.io.IOException:AUTHENTICATION_FAILED 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at com.google.android.gms.iid.zzc.zzb(Unknown Source) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at com.google.android.gms.iid.zzc.zza(Unknown Source) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at com.google.android.gms.iid.InstanceID.zzc(Unknown Source) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at com.google.android.gms.iid.InstanceID.getToken(Unknown Source) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at gcm.play.android.samples.com.gcmquickstart.RegistrationIntentService.onHandleIntent(RegistrationIntentService.java:55) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at android.app.IntentService $ ServiceHandler.handleMessage(IntentService.java:65) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at android.os.Handler.dispatchMessage(Handler.java:102) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at android.os.Looper.loop(Looper.java:135) 11-05 15:35:13.912 10201-10230 / com.example.pandes4.sampleproject D / RegIntentService:at android.os.HandlerThread.run(HandlerThread.java:61)

The error screenshot in the emulator is attached.

请有人帮忙吗。

0 个答案:

没有答案