4

我在 Micromax Canvas 2 上运行我的应用程序时得到了这个 logcat,我的手机配置为 Google 服务和 google 帐户,在这里我没有得到 GCM 注册 ID,而我在 emulator 中得到它。任何建议为什么?提前谢谢。

07-11 13:52:48.145: V/InputMethodManager(16539): focusOut: android.widget.AutoCompleteTextView{41990460 VFED..CL .F....ID 0,53-480,113 #7f070024 app:id/txt_sitename} 

mServedView=android.widget.AutoCompleteTextView{41990460 VFED..CL .F....ID 0,53-480,113 #7f070024 app:id/txt_sitename} winFocus=false
07-11 13:54:05.461: V/GCMBroadcastReceiver(16539): onReceive: com.google.android.c2dm.intent.REGISTRATION
07-11 13:54:05.461: V/GCMBroadcastReceiver(16539): GCM IntentService class: dotsandcoms.android.siteuplitenew.GCMIntentService
07-11 13:54:05.463: V/GCMBaseIntentService(16539): Acquiring wakelock
07-11 13:54:05.469: V/GCMBaseIntentService(16539): Intent service name: GCMIntentService-677416186780-1
07-11 13:54:05.470: D/dalvikvm(16539): create interp thread : stack size=32KB
07-11 13:54:05.470: D/dalvikvm(16539): create new thread
07-11 13:54:05.470: D/dalvikvm(16539): new thread created
07-11 13:54:05.470: D/dalvikvm(16539): update thread list
07-11 13:54:05.471: D/dalvikvm(16539): threadid=13: interp stack at 0x5e527000
07-11 13:54:05.471: D/dalvikvm(16539): threadid=13: created from interp
07-11 13:54:05.471: D/dalvikvm(16539): start new thread
07-11 13:54:05.471: D/dalvikvm(16539): threadid=13: notify debugger
07-11 13:54:05.471: D/dalvikvm(16539): threadid=13 (IntentService[GCMIntentService-677416186780-1]): calling run()
07-11 13:54:05.476: E/GCMRegistrar(16539): internal error: retry receiver class not set yet
07-11 13:54:05.476: V/GCMRegistrar(16539): Registering receiver
07-11 13:54:05.477: D/GCMBaseIntentService(16539): handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null
07-11 13:54:05.477: D/GCMBaseIntentService(16539): Registration error: SERVICE_NOT_AVAILABLE
07-11 13:54:05.477: D/GCMBaseIntentService(16539): Scheduling registration retry, backoff = 3515 (3000)
07-11 13:54:05.490: V/GCMBaseIntentService(16539): Releasing wakelock
07-11 13:54:05.497: D/dalvikvm(16539): threadid=13: exiting
07-11 13:54:05.497: D/dalvikvm(16539): threadid=13: bye!
07-11 13:54:08.995: V/GCMBroadcastReceiver(16539): onReceive: com.google.android.gcm.intent.RETRY
07-11 13:54:08.995: V/GCMBroadcastReceiver(16539): GCM IntentService class: dotsandcoms.android.siteuplitenew.GCMIntentService
07-11 13:54:08.995: V/GCMBaseIntentService(16539): Acquiring wakelock
07-11 13:54:09.001: V/GCMBaseIntentService(16539): Intent service name: GCMIntentService-677416186780-2
07-11 13:54:09.003: D/dalvikvm(16539): create interp thread : stack size=32KB
07-11 13:54:09.004: D/dalvikvm(16539): create new thread
07-11 13:54:09.004: D/dalvikvm(16539): new thread created
07-11 13:54:09.004: D/dalvikvm(16539): update thread list
07-11 13:54:09.004: D/dalvikvm(16539): threadid=13: interp stack at 0x5e527000
07-11 13:54:09.004: D/dalvikvm(16539): threadid=13: created from interp
07-11 13:54:09.004: D/dalvikvm(16539): start new thread
07-11 13:54:09.004: D/dalvikvm(16539): threadid=13: notify debugger
07-11 13:54:09.004: D/dalvikvm(16539): threadid=13 (IntentService[GCMIntentService-677416186780-2]): calling run()
07-11 13:54:09.010: V/GCMRegistrar(16539): Registering app dotsandcoms.android.siteuplitenew of senders 677416186780
07-11 13:54:09.018: V/GCMBaseIntentService(16539): Releasing wakelock
07-11 13:54:09.022: D/dalvikvm(16539): threadid=13: exiting
07-11 13:54:09.022: D/dalvikvm(16539): threadid=13: bye!
4

1 回答 1

7

这是一个已知的错误,

如果您收到错误“内部错误:尚未设置重试接收器类”,则说明您使用的是旧版本的客户端 gcm.jar。这是修复错误的补丁。无需在 Android SDK 中修补本地版本的 GCMBroadcastReceiver.java,您可以从 GCM 存储库下载源代码或更新的 gcm.jar 文件。

链接到补丁

于 2013-07-11T09:13:35.393 回答