quickstart-android icon indicating copy to clipboard operation
quickstart-android copied to clipboard

Crash by Service not registered: com.google.android.gms.common.internal.zzf@a87a29b android.app.LoadedApk.forgetServiceDispatcher

Open jecksonwang opened this issue 6 years ago • 7 comments

Step 1: Describe your environment

  • Android device: Xiaomi MI 8 UD (equuleus)
  • Android OS version: 9.0
  • Google Play Services version: 17.0.0
  • Firebase/Play Services SDK version: 17.0.0

Step 2: Describe the problem:

app crash by the issue

Steps to reproduce:

Appears randomly and randomly during the process of using APP

Observed Results:

java.lang.IllegalArgumentException: at android.app.LoadedApk.forgetServiceDispatcher (LoadedApk.java:1570) at android.app.ContextImpl.unbindService (ContextImpl.java:1702) at android.content.ContextWrapper.unbindService (ContextWrapper.java:727) at com.google.android.gms.common.stats.ConnectionTracker.unbindService (Unknown Source:25) at com.google.android.gms.common.internal.zzf.zzf (Unknown Source:41) at com.google.android.gms.common.internal.zze.handleMessage (Unknown Source:45) at android.os.Handler.dispatchMessage (Handler.java:102) at com.google.android.gms.internal.common.zze.dispatchMessage (Unknown Source:8) at android.os.Looper.loop (Looper.java:201) at android.app.ActivityThread.main (ActivityThread.java:6806) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:873)

Expected Results:

no carsh

Relevant Code:

After integrating firebase in my project, I occasionally get the following error

Fatal Exception: java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.common.internal.zzf@a87a29b at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1680) at android.app.ContextImpl.unbindService(ContextImpl.java:1781) at android.content.ContextWrapper.unbindService(ContextWrapper.java:730) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(:25) at com.google.android.gms.common.internal.zzf.zzf(:41) at com.google.android.gms.common.internal.zze.handleMessage(:45) at android.os.Handler.dispatchMessage(Handler.java:102) at com.google.android.gms.internal.common.zze.dispatchMessage(:8) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7127) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)

I checked the related source code for zzf

public final void zzf(String var1) { zze.zzb(this.zzec).removeMessages(1, this.zzeb); zze.zzd(this.zzec).unbindService(zze.zzc(this.zzec), this); this.zzea = false; this.mState = 2; }

I would like to ask whether this service is bound by firebase, and when was it unbundled, why did this problem occur when unbundling?

jecksonwang avatar Mar 13 '20 03:03 jecksonwang

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Mar 13 '20 03:03 google-oss-bot

我也遇到同样的问题,请问你解决了吗?

hysheng avatar Apr 09 '20 02:04 hysheng

@jecksonwang that class is involved in the connection between your app and Google Play services. It's not clear from the stack trace how Firebase is involved here. Do you have any information on how to reproduce this issue?

samtstern avatar Apr 09 '20 12:04 samtstern

Hey @jecksonwang. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Apr 20 '20 01:04 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@jecksonwang if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Apr 23 '20 01:04 google-oss-bot

我也遇到同样的问题,请问你解决了吗?

LambdaXiao avatar Apr 24 '20 10:04 LambdaXiao

it happened on xiaomi

Lans avatar Nov 25 '20 10:11 Lans