Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve internal error: retry receiver class not set yet and GCMBaseIntentService : SERVICE_NOT_AVAILABLE error

I am getting this logcat on running my app on Micromax Canvas 2, my phone is configured to Google services and google account, Here I am not getting the GCM registration ID whereas I am getting it in emulator. Any suggestions why ? Thanx in advance.

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!
like image 743
Sydroid Avatar asked Mar 23 '23 05:03

Sydroid


1 Answers

This is a known bug,

If you get the error "internal error: retry receiver class not set yet," then you've got an older version of the client gcm.jar. This is the patch that fixes the error. Instead of patching your local version of GCMBroadcastReceiver.java in the Android SDK, you can download either the source or the updated gcm.jar file from the GCM repository.

Link to Patch

like image 185
Oli Avatar answered Apr 26 '23 04:04

Oli