How to solve an internal error: try the receiver class again and GCMBaseIntentService: SERVICE_NOT_AVAILABLE error

I get this logcat when I run my application on Micromax Canvas 2, my phone is configured with Google services and google account. Here I do not get the GCM ID , whereas I get it in the 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! 
+4
source share
1 answer

This is a known mistake

If you get the error "internal error: try the receiver class has not yet been installed", you will get an older version of the gcm.jar client. This is a bug fix. Instead of fixing the 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.

Patch Link

+7
source

Source: https://habr.com/ru/post/1490866/


All Articles