I have the following exception when FirebaseAnalytics.logEvent executes :
com.dreamtechs.MadfooatCom W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzji@dbed45a
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1832)
at android.app.ContextImpl.unbindService(ContextImpl.java:1880)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzir.zzah(com.google.android.gms:play-services-measurement-impl@@17.4.3:251)
at com.google.android.gms.measurement.internal.zzir.zzam(com.google.android.gms:play-services-measurement-impl@@17.4.3:268)
at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@17.4.3:335)
at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@17.4.3:2)
at com.google.android.gms.measurement.internal.zzaj.run(com.google.android.gms:play-services-measurement-impl@@17.4.3:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfz.run(com.google.android.gms:play-services-measurement-impl@@17.4.3:21)
implementation 'com.google.android.gms:play-services-base:17.3.0'
implementation 'com.google.android.gms:play-services-basement:17.3.0'
implementation "com.google.android.gms:play-services-vision:20.1.0"
implementation "com.google.android.gms:play-services-places:17.0.0"
implementation "com.google.android.gms:play-services-location:17.0.0"
implementation "com.google.android.gms:play-services-auth:18.0.0"
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
implementation 'com.google.android.gms:play-services-auth-api-phone:17.4.0'
implementation "com.google.firebase:firebase-core:17.4.3"
implementation "com.google.firebase:firebase-messaging:20.2.0"
implementation "com.google.firebase:firebase-invites:17.0.0"
implementation "com.google.firebase:firebase-config:19.1.4"
implementation 'com.google.firebase:firebase-firestore:21.4.3'
implementation 'com.google.firebase:firebase-functions:19.0.2'
implementation 'com.google.firebase:firebase-crashlytics:17.0.1'
implementation 'com.google.firebase:firebase-analytics:17.4.3'
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
I get the same error.
I am using firebase-core 17.4.3 and crashlytics 2.10.1
Issue started in play-services-basement:17.3.0
Same error here - also using play-services-basement:17.3.0
firebase-core 17.4.3 and firebase-crashlytics 17.0.1
Difference on my side: I already removed all calls to logEvent. But I have a wearable in my system:
com.google.android.gms:play-services-wearable:17.0.0
The only way to fix it was to remove firebase-core and firebase-analytics but still keep firebase-crashlytics (which I need most, no idea wich features I will loose though). My google-services version is 4.3.3, analytics was 17.4.3.
Have the same problem.
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation 'com.google.firebase:firebase-crashlytics:17.0.1'
Same issue
Same issue here
Same issue for me, I am using:
classpath 'com.google.firebase:firebase-plugins:2.0.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.1'
implementation 'com.google.android.gms:play-services-base:17.3.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.firebase:firebase-crashlytics:17.0.1'
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation "com.google.firebase:firebase-perf:19.0.7"
implementation 'com.google.firebase:firebase-messaging:20.2.0'
implementation 'com.firebase:firebase-jobdispatcher:0.8.6'
same issue
Same issue.
I was remove com.google.android.gms:play-services-base and problem solved.
Upgraded version, i think very serious,I have this problem, too
Similar to #1348
Folks,
We wish to acknowledge the problem. I've been able to repro the issue with the below configuration
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation 'com.google.android.gms:play-services-base:17.3.0'
Thanks @amal @virgil85 @voyula for pointing us in the right direction.
The temporary fix while we work on this is to exclude base from the build. implementation 'com.google.android.gms:play-services-base:17.3.0'
Products that need base should automatically bring in the right version of base.
If there are use cases that need you to explicitly codify base as an explicit dependency that I am not aware of, pls drop us a note.
I also have this error .
Actually comment out this line
implementation 'com.google.android.gms:play-services-base:17.3.0'

It's just that the version number went from 17.3.0 to 17.0.0
And then there was no mistake
Commenting out 17.3.0 I get...
E/flutter (29371): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.NoSuchMethodError: No static method isAtLeastR()Z in class Landroidx/core/os/BuildCompat; or its super classes (declaration of 'androidx.core.os.BuildCompat' appears in /data/app/............==/base.apk)
E/flutter (29371): at com.google.android.gms.common.util.PlatformVersion.isAtLeastR(com.google.android.gms:play-services-basement@@17.2.1:21)
E/flutter (29371): at com.google.android.gms.common.api.GoogleApi.zaa(com.google.android.gms:play-services-base@@17.2.1:128)
E/flutter (29371): at com.google.android.gms.common.api.GoogleApi.<init>(com.google.android.gms:play-services-base@@17.2.1:41)
E/flutter (29371): at com.google.android.gms.common.api.GoogleApi.<init>(com.google.android.gms:play-services-base@@17.2.1:56)
E/flutter (29371): at com.google.android.gms.location.FusedLocationProviderClient.<init>(Unknown Source:8)
E/flutter (29371): at com.google.android.gms.location.LocationServices.getFusedLocationProviderClient(Unknown Source:2)
At 17.2.1, I got No static method isAtLeastR, a known issue. 17.0.0 could not login to Firebase, 17.1.0 seems to work for me at least thus far.
Any resolution on this? I'm getting this error, as well.
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
I have this issue with my
implementation "com.google.android.gms:play-services-ads:$admob_version"
admob_version = '19.3.0'
I've just checked, no new versions available.
I have an issue with this library so instead of using 19.4.0 of this library I used 19.3.0
implementation 'com.google.android.gms:play-services-ads:19.4.0'
Use this below library instead of 19.4.0
implementation 'com.google.android.gms:play-services-ads:19.3.0'
Same issue here
Me too
Same here:
ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@6b0fcf
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1757)
at android.app.ContextImpl.unbindService(ContextImpl.java:1874)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:792)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
Edit: changing to com.google.android.gms:play-services-ads:19.3.0 from com.google.android.gms:play-services-ads:19.4.0 no more errors.
Same here [Samsung Galaxy S9 Plus]
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@abd3d77
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870)
at android.app.ContextImpl.unbindService(ContextImpl.java:1848)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:755)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
Same issue using:
implementation 'com.google.firebase:firebase-ads-lite:19.4.0'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
Same issue :
Dependencies :
implementation 'com.google.firebase:firebase-firestore:21.6.0'
implementation 'com.google.firebase:firebase-ads:19.4.0'
Log :
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjk@1382f7d
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870)
at android.app.ContextImpl.unbindService(ContextImpl.java:1847)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:755)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzis.zzah(com.google.android.gms:play-services-measurement-impl@@17.2.2:242)
at com.google.android.gms.measurement.internal.zzis.zzak(com.google.android.gms:play-services-measurement-impl@@17.2.2:259)
at com.google.android.gms.measurement.internal.zzis.zzc(com.google.android.gms:play-services-measurement-impl@@17.2.2:321)
at com.google.android.gms.measurement.internal.zzir.zza(com.google.android.gms:play-services-measurement-impl@@17.2.2:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.2.2:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzgg.run(com.google.android.gms:play-services-measurement-impl@@17.2.2:21)
Same issue here:
implementation 'com.google.android.gms:play-services-ads:19.4.0'
V/FA: Inactivity, disconnecting from the service
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@1524f61
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
I am still getting below error:
Device: Android emulator
Nexus 5 API 23
Log:
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@97437a5
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1044)
at android.app.ContextImpl.unbindService(ContextImpl.java:1337)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:616)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
Exactly the same after changing from:
implementation 'com.google.android.gms:play-services-ads:19.3.0'
to
implementation 'com.google.android.gms:play-services-ads:19.4.0'
Sa
Exactly the same after changing from:
implementation 'com.google.android.gms:play-services-ads:19.3.0'
to
implementation 'com.google.android.gms:play-services-ads:19.4.0'
Same issue. Happens immediately after gradle dependency is added. I commented out all my Admob code yet keeps showing.
I do have
`api 'com.google.android.gms:play-services-ads:19.4.0'`
api "com.google.android.gms:play-services-location:17.0.0"
api 'com.google.firebase:firebase-analytics:17.5.0'
implementation 'com.google.firebase:firebase-storage:19.2.0'
implementation 'com.google.firebase:firebase-database:19.4.0'
implementation 'com.google.firebase:firebase-auth:19.4.0'
implementation 'com.google.firebase:firebase-dynamic-links:19.1.0'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'com.google.firebase:firebase-config:19.2.0'
but still getting
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@ca56e41
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
~api 'com.google.android.gms:play-services-ads:19.4.0'~
implementation 'com.google.firebase:firebase-database:19.4.0' implementation 'com.google.firebase:firebase-auth:19.4.0'but still getting
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@ca56e41
So you still have 19.4.0 dependencies even though you removed play-services-ads, may be this affects.
Same Exception with
implementation 'com.google.android.gms:play-services-ads:19.4.0'
```W/ConnectionTracker(31271): Exception thrown while unbinding
W/ConnectionTracker(31271): java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@b78c480
W/ConnectionTracker(31271): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
W/ConnectionTracker(31271): at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
W/ConnectionTracker(31271): at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
W/ConnectionTracker(31271): at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
W/ConnectionTracker(31271): at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
W/ConnectionTracker(31271): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(31271): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(31271): at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
Same:
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@f777eea
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870)
at android.app.ContextImpl.unbindService(ContextImpl.java:1848)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:755)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
same exception :
W/ConnectionTracker(20007): Exception thrown while unbinding
W/ConnectionTracker(20007): java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjp@d584922
W/ConnectionTracker(20007): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
W/ConnectionTracker(20007): at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
W/ConnectionTracker(20007): at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
W/ConnectionTracker(20007): at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
W/ConnectionTracker(20007): at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zziv.zzag(com.google.android.gms:play-services-measurement-impl@@17.5.0:245)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zziv.zzal(com.google.android.gms:play-services-measurement-impl@@17.5.0:262)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zziv.zzc(com.google.android.gms:play-services-measurement-impl@@17.5.0:336)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zziu.zza(com.google.android.gms:play-services-measurement-impl@@17.5.0:2)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:7)
W/ConnectionTracker(20007): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(20007): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(20007): at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.5.0:21)
my app/build.gradle
`def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
rootProject.ext {
set('FlutterFire', [
FirebaseSDKVersion: '25.4.1'
])
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
//apply plugin: 'io.fabric'
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
compileSdkVersion 30
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.app"
minSdkVersion 23
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
}
}
flutter {
source '../..'
}
dependencies {
implementation platform('com.google.firebase:firebase-bom:25.10.0')
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-inappmessaging-ktx'
implementation 'com.google.firebase:firebase-perf'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test: runner :1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
`
Same issue here. For now I solve it by downgrading to
implementation 'com.google.android.gms:play-services-ads:19.3.0'
Still no fix since Jun 14, although the issue is perfectly reproducible. Please everyone here in this thread vote up this issue to speed up the fix. Thanks.
Still no fix since Jun 14, although the issue is perfectly reproducible. Please everyone here in this thread vote up this issue to speed up the fix. Thanks.
I bet they dont even care for how many "likes" an issue has in order to priorize it for the sprint...
it is a company, not a group of indie hackers, they will priorize whatever brings them the highest economic value.
and to prove my point is just to look around and see how many issues are closed due "too heat"
So if you really want to make they priorize this... just make an economic/financial argument this is how company works
So if you really want to make they priorize this... just make an economic/financial argument this is how company works
Mmm. This is a core library (in this particular case google-ads-19.3.0 upgraded to 19.4.0). Mobile ads are essential in generating revenue for Google itself, no? Why I do explain this? Should I also explain that in this case any part of related code MUST be considered as critical? And covered by extra tests, extra Q&A and extra team attention?
From one side, we receive weird crash reports with google-ads obfuscated stack. From the other side, we receive numerous complains (on and on) from our users saying that exactly AFTER UPDATE interstitials are behaving much worse, up to app hangs. And we just don't know how to respond to such complains...
As a solution, our users prefer to uninstall :( In a slightly better case, they rollback to any earlier app version to keep ads behaviour as it was before. Although we haven't made any changes in ads code/behaviour for years.
I thought everything above is clear without explanations. Especially regarding economic/financial aspect.
Adding:
implementation 'com.google.android.gms:play-services-basement:17.4.0'
seems to solve the issue (the warning is no longer logged).
Adding:
implementation 'com.google.android.gms:play-services-basement:17.4.0'seems to solve the issue (the warning is no longer logged).
implementation 'com.google.android.gms:play-services-basement:17.4.0'
Adding this dependency solves this issue as of now.
This issue came up for me too. But I did the following:
dependencies {
// Remove the Fabric Crashlytics SDK.
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
// Add the Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
// Recommended: Add the Google Analytics SDK.
implementation 'com.google.firebase:firebase-analytics:17.6.0'
}
This is from crashlytics upgrade guide. Apparently analytics is not just "optional"
For me none of the above accepted answers worked. Here are my list of dependencies-
implementation 'com.google.android.gms:play-services-ads:19.3.0'
implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
implementation 'com.google.firebase:firebase-analytics:17.6.0'
implementation 'com.job:droidnet:2.0.0'
implementation 'com.google.android.gms:play-services-basement:17.4.0'
// implementation 'com.google.firebase:firebase-ads:19.4.0'
implementation 'com.google.firebase:firebase-messaging:20.3.0'
implementation 'com.google.firebase:firebase-core:17.5.1'
can anyone please point out what I am missing/adding wrongly?
Same here using below dependencies, even i tried to set play-services-ads as 19.3.0 or 19.4.0
implementation 'com.google.android.gms:play-services-ads:19.5.0'
implementation 'com.google.firebase:firebase-messaging:20.3.0'
implementation 'com.android.support:multidex:1.0.3'
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-config'
implementation "com.google.firebase:firebase-core"
implementation 'com.google.firebase:firebase-perf'
I used basement 17.5.0 and firebase-ads 19.5.0 the issue still exists.
I fixed adding: implementation 'com.google.android.gms:play-services-basement:17.5.0' (version not relevant, just get the latest)
In my case the error show up when integrate the Firebase Performance sdk.
Error:
_W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzji@a48bf5
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1557)
at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzio.zzag(com.google.android.gms:play-services-measurement-impl@@17.6.0:245)
at com.google.android.gms.measurement.internal.zzio.zzal(com.google.android.gms:play-services-measurement-impl@@17.6.0:262)
at com.google.android.gms.measurement.internal.zzio.zzc(com.google.android.gms:play-services-measurement-impl@@17.6.0:336)
at com.google.android.gms.measurement.internal.zzir.zza(com.google.android.gms:play-services-measurement-impl@@17.6.0:2)
at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfs.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:21)_
Gradle:
// kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0'
// external services
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.facebook.android:facebook-android-sdk:8.1.0'
// googel and firebase
implementation 'com.google.firebase:firebase-analytics:17.6.0'
implementation 'com.google.firebase:firebase-auth-ktx:19.4.0'
implementation 'com.google.android.gms:play-services-auth:18.1.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.3.9-native-mt-2'
implementation 'com.google.firebase:firebase-crashlytics-ktx:17.2.2'
implementation 'com.google.firebase:firebase-perf:19.0.9':
I fixed adding: implementation 'com.google.android.gms:play-services-basement:17.5.0' (version not relevant, just get the latest)
In my case the error show up when integrate the Firebase Performance sdk.
Error:
_W/ConnectionTracker: Exception thrown while unbinding java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzji@a48bf5 at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1557) at android.app.ContextImpl.unbindService(ContextImpl.java:1692) at android.content.ContextWrapper.unbindService(ContextWrapper.java:717) at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) at com.google.android.gms.measurement.internal.zzio.zzag(com.google.android.gms:play-services-measurement-impl@@17.6.0:245) at com.google.android.gms.measurement.internal.zzio.zzal(com.google.android.gms:play-services-measurement-impl@@17.6.0:262) at com.google.android.gms.measurement.internal.zzio.zzc(com.google.android.gms:play-services-measurement-impl@@17.6.0:336) at com.google.android.gms.measurement.internal.zzir.zza(com.google.android.gms:play-services-measurement-impl@@17.6.0:2) at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:7) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.gms.measurement.internal.zzfs.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:21)_
Gradle:
// kotlin implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0' // external services implementation 'com.google.android.material:material:1.2.1' implementation 'com.facebook.android:facebook-android-sdk:8.1.0' // googel and firebase implementation 'com.google.firebase:firebase-analytics:17.6.0' implementation 'com.google.firebase:firebase-auth-ktx:19.4.0' implementation 'com.google.android.gms:play-services-auth:18.1.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.3.9-native-mt-2' implementation 'com.google.firebase:firebase-crashlytics-ktx:17.2.2' implementation 'com.google.firebase:firebase-perf:19.0.9':
Yes that fixed it for me as well. Thanks !
I fixed adding: implementation 'com.google.android.gms:play-services-basement:17.5.0' (version not relevant, just get the latest)
In my case the error show up when integrate the Firebase Performance sdk.
Error:
_W/ConnectionTracker: Exception thrown while unbinding java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzji@a48bf5 at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1557) at android.app.ContextImpl.unbindService(ContextImpl.java:1692) at android.content.ContextWrapper.unbindService(ContextWrapper.java:717) at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) at com.google.android.gms.measurement.internal.zzio.zzag(com.google.android.gms:play-services-measurement-impl@@17.6.0:245) at com.google.android.gms.measurement.internal.zzio.zzal(com.google.android.gms:play-services-measurement-impl@@17.6.0:262) at com.google.android.gms.measurement.internal.zzio.zzc(com.google.android.gms:play-services-measurement-impl@@17.6.0:336) at com.google.android.gms.measurement.internal.zzir.zza(com.google.android.gms:play-services-measurement-impl@@17.6.0:2) at com.google.android.gms.measurement.internal.zzai.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:7) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.gms.measurement.internal.zzfs.run(com.google.android.gms:play-services-measurement-impl@@17.6.0:21)_
Gradle:
// kotlin implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-beta01' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0' // external services implementation 'com.google.android.material:material:1.2.1' implementation 'com.facebook.android:facebook-android-sdk:8.1.0' // googel and firebase implementation 'com.google.firebase:firebase-analytics:17.6.0' implementation 'com.google.firebase:firebase-auth-ktx:19.4.0' implementation 'com.google.android.gms:play-services-auth:18.1.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.3.9-native-mt-2' implementation 'com.google.firebase:firebase-crashlytics-ktx:17.2.2' implementation 'com.google.firebase:firebase-perf:19.0.9':
Yes, it works for me ! Thanks.
same issue with
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
on main gradle
```
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.google.gms:google-services:4.3.4'
// Add the Firebase Crashlytics Gradle plugin.
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
```
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@5f47c30
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1757)
at android.app.ContextImpl.unbindService(ContextImpl.java:1874)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:792)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245)
at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262)
at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336)
at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2)
at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfv.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:21)
same issue with
implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.firebase:firebase-messaging:21.0.0' implementation 'com.google.firebase:firebase-crashlytics:17.2.2'on main gradle
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.google.gms:google-services:4.3.4'
// Add the Firebase Crashlytics Gradle plugin.
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
W/ConnectionTracker: Exception thrown while unbinding java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@5f47c30 at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1757) at android.app.ContextImpl.unbindService(ContextImpl.java:1874) at android.content.ContextWrapper.unbindService(ContextWrapper.java:792) at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245) at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262) at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336) at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2) at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.gms.measurement.internal.zzfv.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:21)
```
add the dependency:
implementation 'com.google.android.gms:play-services-basement:17.5.0'
to the gradle
I have the following exception when FirebaseAnalytics.logEvent executes :
com.dreamtechs.MadfooatCom W/ConnectionTracker: Exception thrown while unbinding java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzji@dbed45a at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1832) at android.app.ContextImpl.unbindService(ContextImpl.java:1880) at android.content.ContextWrapper.unbindService(ContextWrapper.java:741) at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) at com.google.android.gms.measurement.internal.zzir.zzah(com.google.android.gms:play-services-measurement-impl@@17.4.3:251) at com.google.android.gms.measurement.internal.zzir.zzam(com.google.android.gms:play-services-measurement-impl@@17.4.3:268) at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@17.4.3:335) at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@17.4.3:2) at com.google.android.gms.measurement.internal.zzaj.run(com.google.android.gms:play-services-measurement-impl@@17.4.3:7) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.gms.measurement.internal.zzfz.run(com.google.android.gms:play-services-measurement-impl@@17.4.3:21)implementation 'com.google.android.gms:play-services-base:17.3.0' implementation 'com.google.android.gms:play-services-basement:17.3.0' implementation "com.google.android.gms:play-services-vision:20.1.0" implementation "com.google.android.gms:play-services-places:17.0.0" implementation "com.google.android.gms:play-services-location:17.0.0" implementation "com.google.android.gms:play-services-auth:18.0.0" implementation 'com.google.android.gms:play-services-gcm:17.0.0' implementation 'com.google.android.gms:play-services-analytics:17.0.0' implementation 'com.google.android.gms:play-services-auth-api-phone:17.4.0' implementation "com.google.firebase:firebase-core:17.4.3" implementation "com.google.firebase:firebase-messaging:20.2.0" implementation "com.google.firebase:firebase-invites:17.0.0" implementation "com.google.firebase:firebase-config:19.1.4" implementation 'com.google.firebase:firebase-firestore:21.4.3' implementation 'com.google.firebase:firebase-functions:19.0.2' implementation 'com.google.firebase:firebase-crashlytics:17.0.1' implementation 'com.google.firebase:firebase-analytics:17.4.3'
try adding
implementation 'com.google.android.gms:play-services-basement:17.5.0'
to gradle dependencies
Adding
implementation 'com.google.android.gms:play-services-basement:17.5.0'
might work on some devices, but if you check your users logs you will see that a lot of them are still getting this issue.
There is no fix for this at the moment and Google isn't interested in fixing this issue or any other issue reported by hundreds of developers. This is a shame because both developer AND Google are losing money over this
Adding
implementation 'com.google.android.gms:play-services-basement:17.5.0'
might work on some devices, but if you check your users logs you will see that a lot of them are still getting this issue.There is no fix for this at the moment and Google isn't interested in fixing this issue or any other issue reported by hundreds of developers. This is a shame because both developer AND Google are losing money over this
i see the error in logs but still the app is working fine, it will affect something?
What is the effect of this issue?
Because silent those errors does not solve the problem. What we are facing with?
In my case users having those errors are not getting ads from Admob, so yes this is a major issue
Does anyone knows if it's effect firebase analystics?
Yes its. We need flutter to provide fix asap
On Wed, Nov 11, 2020, 18:18 saveKenny notifications@github.com wrote:
Does anyone knows if it's effect firebase analystics?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-android-sdk/issues/1662#issuecomment-725516239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALJEI6TH6YKNW2SPE2LA4TDSPK2NBANCNFSM4N5MNLAA
.
Yes its. We need flutter to provide fix asap
…
On Wed, Nov 11, 2020, 18:18 saveKenny @.*> wrote: Does anyone knows if it's effect firebase analystics? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1662 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJEI6TH6YKNW2SPE2LA4TDSPK2NBANCNFSM4N5MNLAA .
Does can prevent from some analytics to get to the firebase debugView? Because I'm using the debugView and I see there only some of my analytics.
Also what can we do in order to pressure Flutter team to fix that issue asap?
Does anyone knows if it's effect firebase analystics?
no firebase analystics works fine
using implementation 'com.google.android.gms:play-services-basement:17.5.0' while testing on emulator fixed isuue
Does anyone knows if it's effect firebase analystics?
no firebase analystics works fine
No,it doesn´t, im having problems not reporting screens names.
implementation 'com.google.android.gms:play-services-basement:17.4.0'
This fixed it for me too! I was using the implementation "com.google.android.gms:play-services-location:17.1.0" along with firebase-config, firebase-perf, firebase-crashlytics and firebase-analytics...
Same issue for me on Flutter
Same for in flutterfire
firebase_analytics: ^6.2.0
firebase_core: ^0.5.2
Me too
firebase_analytics: ^6.2.0
firebase_core: ^0.5.2
firebase_crashlytics^:0.2.3
same issue here.
addingimplementation 'com.google.android.gms:play-services-basement:17.5.0' does not fix the issue for me
Same here,
implementation 'com.google.android.gms:play-services-basement:17.4.0' didn't fix it
My env is the following
Flutter 1.22.0 • channel stable
firebase_core: ^0.5.2
firebase_crashlytics: ^0.2.3
firebase_analytics: ^6.2.0
Having the same problem recently
Flutter 1.22.4 Stable Channel
firebase_core: ^0.5.2
firebase_crashlytics: ^0.2.3
firebase_analytics: ^6.2.0
Google, please fix this...
Same issue
Same/similar issue .. no crashes but getting this after adding firebase_core and updating crashlytics SDK
W/ConnectionTracker(15730): Exception thrown while unbinding
W/ConnectionTracker(15730): java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@4d1d01d
W/ConnectionTracker(15730): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759)
W/ConnectionTracker(15730): at android.app.ContextImpl.unbindService(ContextImpl.java:1786)
W/ConnectionTracker(15730): at android.content.ContextWrapper.unbindService(ContextWrapper.java:751)
W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7)
W/ConnectionTracker(15730): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(15730): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzfv.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:21)
firebase_core: ^0.5.2
firebase_messaging: ^6.0.2
firebase_analytics: ^5.0.11
firebase_crashlytics: ^0.2.3
firebase_performance: ^0.3.1+5
THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies {
// other imports
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
}
THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }
After trying everything this exact combination of versions and order seem to have solved the issue for us as well!
THANKS
This WORKS for me as well. Thank you!
THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }After trying everything this exact combination of versions and order seem to have solved the issue for us as well!
THANKS
This works for me too. Thank you
THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }After trying everything this exact combination of versions and order seem to have solved the issue for us as well!
THANKSThis works for me too. Thank you
This works for me, too. Thank you.
carman247's solution did not work for me. I am using only admob, none of the other services (ie no crashlytics etc). In my first implementation I tried to follow the instructions in this guide. I saw test ads but wasn't seeing ads in production, and was seeing the error. I have a small enough footprint that I thought maybe I wasn't seeing prod ads because admob didn't trust me yet. Looking at the other comments, though, it looks like maybe this bug prevents admob ads from being shown.
Finally, I tried running their sample app and did not see the error. I matched my versions perfectly with theirs in the pubspec.yaml and the build.gradle files. This worked, and the error no longer appears.
Here are permalinks to the versions that worked for me:
Kind of a bummer that an error preventing ads from being shown has persisted for so long. I am loving working in flutter, but this makes me nervous.
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
thanks it works for me
Same/similar issue .. no crashes but getting this after adding firebase_core and updating crashlytics SDK
W/ConnectionTracker(15730): Exception thrown while unbinding W/ConnectionTracker(15730): java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@4d1d01d W/ConnectionTracker(15730): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759) W/ConnectionTracker(15730): at android.app.ContextImpl.unbindService(ContextImpl.java:1786) W/ConnectionTracker(15730): at android.content.ContextWrapper.unbindService(ContextWrapper.java:751) W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7) W/ConnectionTracker(15730): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) W/ConnectionTracker(15730): at java.util.concurrent.FutureTask.run(FutureTask.java:266) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzfv.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:21)firebase_core: ^0.5.2 firebase_messaging: ^6.0.2 firebase_analytics: ^5.0.11 firebase_crashlytics: ^0.2.3 firebase_performance: ^0.3.1+5THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }
This doesn´t work for me
Using :
androidTestImplementation 'com.google.android.gms:play-services-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
I'm using Flutter and this seems to work for me
https://firebase.google.com/docs/android/setup#add-sdks
Same here, facing the same issue.
This seems to work for me
https://firebase.google.com/docs/android/setup#add-sdks
What you have added? the firebase-bom?
yes only firebase-bom in dependencies
implementation platform('com.google.firebase:firebase-bom:26.1.0')
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }
this works for me also
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }this works for me also
Why do we need to add these?
the same issue for me, google pixel 3, log
gist
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.firebase:firebase-core:18.0.0'
implementation 'com.google.firebase:firebase-crash:16.2.1'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
is it anything serious?
Same/similar issue .. no crashes but getting this after adding firebase_core and updating crashlytics SDK
W/ConnectionTracker(15730): Exception thrown while unbinding W/ConnectionTracker(15730): java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@4d1d01d W/ConnectionTracker(15730): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759) W/ConnectionTracker(15730): at android.app.ContextImpl.unbindService(ContextImpl.java:1786) W/ConnectionTracker(15730): at android.content.ContextWrapper.unbindService(ContextWrapper.java:751) W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) W/ConnectionTracker(15730): at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7) W/ConnectionTracker(15730): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) W/ConnectionTracker(15730): at java.util.concurrent.FutureTask.run(FutureTask.java:266) W/ConnectionTracker(15730): at com.google.android.gms.measurement.internal.zzfv.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:21)firebase_core: ^0.5.2 firebase_messaging: ^6.0.2 firebase_analytics: ^5.0.11 firebase_crashlytics: ^0.2.3 firebase_performance: ^0.3.1+5THIS SEEMS TO HAVE FIXED IT FOR ME
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies { // other imports implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0' }
And for Kotlin versions?
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-database-ktx'
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.firebase:firebase-storage-ktx'
implementation 'com.google.firebase:firebase-firestore-ktx'
}
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies {
// other imports
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
}
Doesn't work for me.
adding these two dependencies to app level build.gradle (../android/app/build.gradle)
dependencies {
// other imports
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
}Doesn't work for me.
try this https://github.com/firebase/firebase-android-sdk/issues/1662#issuecomment-733049140
Nothing works for me, I've tried every suggestion in this thread. I've removed crashlytics and it still continues, so I guess it is the analytics plugin.
I'm using flutter btw.
I'm in the same bucket as ingmferrer, but these errors don't manifest on a different PC. Same repo, same updates, but no errors.
The other difference is that my Visual Studio dart extension keeps crashing and hot reload stop working too.
Maybe this issue is hidden somewhere else. I'll come back as soon as I do more checks.
Please, let me know if you find something, I need to release a new version but I'm afraid this error would be a problem for my users.
I am having the same issue. It just started to appear suddenly.
I am having a similar issue as well... I have tried removing Firebase Crashlytics and Analytics but these warning messages still persist.
W/ConnectionTracker( 8717): Exception thrown while unbinding
W/ConnectionTracker( 8717): java.lang.IllegalArgumentException: Service not registered: lu@a466967
W/ConnectionTracker( 8717): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870)
W/ConnectionTracker( 8717): at android.app.ContextImpl.unbindService(ContextImpl.java:1848)
W/ConnectionTracker( 8717): at android.content.ContextWrapper.unbindService(ContextWrapper.java:755)
W/ConnectionTracker( 8717): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):1)
W/ConnectionTracker( 8717): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):2)
W/ConnectionTracker( 8717): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):9)
W/ConnectionTracker( 8717): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):3)
W/ConnectionTracker( 8717): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):3)
W/ConnectionTracker( 8717): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker( 8717): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker( 8717): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):5)
Same issue here.
W/ConnectionTracker(10997): java.lang.IllegalArgumentException: Service not registered: lu@48ffaae
W/ConnectionTracker(10997): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1671)
W/ConnectionTracker(10997): at android.app.ContextImpl.unbindService(ContextImpl.java:1781)
W/ConnectionTracker(10997): at android.content.ContextWrapper.unbindService(ContextWrapper.java:730)
W/ConnectionTracker(10997): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):1)
W/ConnectionTracker(10997): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):2)
W/ConnectionTracker(10997): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):9)
W/ConnectionTracker(10997): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3)
W/ConnectionTracker(10997): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3)
W/ConnectionTracker(10997): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459)
W/ConnectionTracker(10997): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(10997): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):5)
I am having the same issue. It just started to appear suddenly.
It started the same for me, some fixes worked for 2-3 days after which the problem started to appear again.
Good catch about this!
I also have the same problem. Some of us cannot override the dependency as we use technology like Flutter with plugins that handle these dependencies on themselves. Even if any workaround applied, I am not sure what the side effects may be. So please fix this with immediate effect. Blocked here: https://github.com/FirebaseExtended/flutterfire/issues/3990
For me, I added the line below.
implementation 'com.google.android.gms:play-services-basement:17.5.0'
Then the error disappeared, but I don't know why.
Did more tests and I seem to have it working. Copy+paste from Stack overflow:
Firebase setup docs were updated and as you can see, firebase-bom was added, but also the option to pick Java or Kotlin.
Double checked my project and:
-ktx ending)For me, I added the line below.
implementation 'com.google.android.gms:play-services-basement:17.5.0'
Then the error disappeared, but I don't know why.
Probably this was the reason the errors were gone on a different PC with the same setup.
Did more tests and I seem to have it working. Copy+paste from Stack overflow:
Firebase setup docs were updated and as you can see, firebase-bom was added, but also the option to pick Java or Kotlin.
Double checked my project and:
- changed all dependencies to Kotlin (
-ktxending)- wiped all the devices data
- removed old unused emulators
- cold booted the device (both from Android Studio Virtual device manager)
For me, I added the line below.
implementation 'com.google.android.gms:play-services-basement:17.5.0'
Then the error disappeared, but I don't know why.Probably this was the reason the errors were gone on a different PC with the same setup.
After trying all suggestions, this one worked for me. Thanks a million! ❤️
I also just started receiving this error, specifically on the Unity SDK of Firebase. Happens only on Android of course.
I'm also getting this error using Flutter, I've tried everything above.
Dependencies:
dependencies:
camera: ^0.5.8+11
path_provider: ^1.6.24
provider: ^4.3.2+2
countdown_flutter: ^0.1.2
fireflutter: ^0.0.35
firebase_core: ^0.5.2
firebase_auth: ^0.18.3
firebase_storage: ^5.1.0
cloud_firestore: ^0.14.3
flutter:
sdk: flutter
App Level build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
...
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:26.1.0')
implementation 'com.google.android.gms:play-services-basement:17.5.0'
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.firebase:firebase-firestore-ktx'
implementation 'com.google.firebase:firebase-storage-ktx'
}
Debug Output:
W/ConnectionTracker(29320): Exception thrown while unbinding
W/ConnectionTracker(29320): java.lang.IllegalArgumentException: Service not registered: lu@2fccb0
W/ConnectionTracker(29320): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870)
W/ConnectionTracker(29320): at android.app.ContextImpl.unbindService(ContextImpl.java:1848)
W/ConnectionTracker(29320): at android.content.ContextWrapper.unbindService(ContextWrapper.java:755)
W/ConnectionTracker(29320): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):1)
W/ConnectionTracker(29320): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):2)
W/ConnectionTracker(29320): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):9)
W/ConnectionTracker(29320): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):3)
W/ConnectionTracker(29320): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):3)
W/ConnectionTracker(29320): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(29320): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(29320): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120408-0):5)
Did more tests and I seem to have it working. Copy+paste from Stack overflow:
Firebase setup docs were updated and as you can see, firebase-bom was added, but also the option to pick Java or Kotlin.
Double checked my project and:
- changed all dependencies to Kotlin (
-ktxending)- wiped all the devices data
- removed old unused emulators
- cold booted the device (both from Android Studio Virtual device manager)
For me, I added the line below.
implementation 'com.google.android.gms:play-services-basement:17.5.0'
Then the error disappeared, but I don't know why.Probably this was the reason the errors were gone on a different PC with the same setup.
Tried this solution, but unfortunately did not get solved. My problem is relevant to the firebase_messaging because it was the last dependency I added before getting all these issues.
Update: the problem got solved only on the emulator. I am still getting the problem with my personal device. @Firebase team really need to work on this issue. It is widely reported (for more than year) and they do not seem to respond to it.
Guys,
It is clear this is an error on firebase/google-play-services import
No combination or order you try to import makes any difference it will still get this error UNTIL THEY SOLVE IT AND RELEASE A NEW VERSION
This is a non fatal error and it is not clear to me what are the real side effects of it, but i get over 2k errors like this per day but no crashes in my app in production so this is a minor error
as always people on google tend to take MONTHS or YEARS to solve problems pointed by community in their free services so i strongly suggest stop speculating.... all messages here suggesting that any specific combinations of import/versions order etc is simple bullshit...
if you are really concerned about it... downgrade all firebase api to bellow 20 and google-play-services bellow 17 and done
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-core:18.0.0'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
implementation 'com.google.firebase:firebase-auth:20.0.1'
implementation platform('com.google.firebase:firebase-bom:25.12.0') implementation 'com.google.firebase:firebase-crashlytics' implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-perf' implementation 'com.google.firebase:firebase-core:18.0.0' implementation 'com.google.firebase:firebase-messaging:21.0.0' implementation 'com.firebase:firebase-jobdispatcher:0.8.5' implementation 'com.google.firebase:firebase-auth:20.0.1'let you set such this
It looks like my previous solution works for one build; if I stop and restart the app, the errors start pouring in again.
I need to do a cleanup and start all over to make them go away.
for my case,
I set following as for firebase and google play service
====
on app gradle
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-core:18.0.0'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
implementation 'com.google.firebase:firebase-auth:20.0.1'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
=====
on project gradle
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
classpath ('com.google.firebase:perf-plugin:1.3.2') {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
let you do like this
for my case,
I set following as for firebase and google play service====
on app gradleimplementation platform('com.google.firebase:firebase-bom:25.12.0') implementation 'com.google.firebase:firebase-crashlytics' implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-perf' implementation 'com.google.firebase:firebase-core:18.0.0' implementation 'com.google.firebase:firebase-messaging:21.0.0' implementation 'com.firebase:firebase-jobdispatcher:0.8.5' implementation 'com.google.firebase:firebase-auth:20.0.1'implementation 'com.google.android.gms:play-services-basement:17.5.0'
=====
on project gradleclasspath 'com.google.gms:google-services:4.3.4' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' classpath ('com.google.firebase:perf-plugin:1.3.2') { exclude group: 'com.google.guava', module: 'guava-jdk5' }let you do like this
then it works well without any exception logs
@shipofsea , is the gone even after you rebuild the app in the emulator?
@shipofsea , is the gone even after you rebuild the app in the emulator?
I checked it on real phone.
Checking on one device is not enough. As soon as you publish the app and
it's being used on thousands of devices this issue will come up in the logs
On Thu, Dec 3, 2020, 12:06 PM Shipofsea notifications@github.com wrote:
@shipofsea https://github.com/shipofsea , is the gone even after you
rebuild the app in the emulator?I checked it on real phone.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-android-sdk/issues/1662#issuecomment-738277342,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH7I7W22G6PVJ2QBVR34N3SS7VT7ANCNFSM4N5MNLAA
.
I published my app with this setting.
now I'm monitoring it on firebase
Hello, everyone,
I have a small iPhone project (Native swift) to complete in a day.
I need someone who completes it
if you are interesting it, let me know
Thank you
I have the same issue
Here is another fix:
Install Java from Oracle if you didn't!
A recap to this thread:
Here is another _fix_:
Install Java from Oracle if you didn't!A recap to this thread:
- Some of the above fixes work for some people while others don't work at all
- The issue is present on emulators, but more confirmations about connected devices will be great!
- This seems to be related with the setup. Same project, same dart version, same editor, but on PC is experiencing the errors while another doesn't
- In my case it _may_ be related to VS Dart extension. I started experiencing these errors around the same time the extension started crashing randomly. But it can just be a coincidence
- The fix I provided above worked only on one build/dev. As soon as I stop and restart the app on the emulator the problems come back. A wipe is required, but I have yet to find the minimum requirements to make them go away because I'm constrained by time.
- The errors appear with or without updating any FB packages or changing any dependencies.
I do confirm that I only have this issue only with my connected android device and not the emulator.
Here is another _fix_:
Install Java from Oracle if you didn't!
A recap to this thread:
- Some of the above fixes work for some people while others don't work at all
- The issue is present on emulators, but more confirmations about connected devices will be great!
- This seems to be related with the setup. Same project, same dart version, same editor, but on PC is experiencing the errors while another doesn't
- In my case it _may_ be related to VS Dart extension. I started experiencing these errors around the same time the extension started crashing randomly. But it can just be a coincidence
- The fix I provided above worked only on one build/dev. As soon as I stop and restart the app on the emulator the problems come back. A wipe is required, but I have yet to find the minimum requirements to make them go away because I'm constrained by time.
- The errors appear with or without updating any FB packages or changing any dependencies.
I do confirm that I only have this issue only with my connected android device and not the emulator.
I also get the issue on a physical device. I haven't tried using an emulator.

I am getting the same error. It improved when I commented the codes
All fixes seem temporary. It'll crop up sooner or later.
Really looking forward to a fix :)
I'm experiencing this issue on Pixel 5 physical hardware. Very annoying. Please provide a fix Google.
I'm experiencing this issue on Pixel 5 physical hardware. Very annoying. Please provide a fix Google.
Same here :( have you found any solution or workaround?
Even I m experiencing the same issue, if anyone found workaround please let
me know
On Tue 8 Dec, 2020, 10:30 AM jayaram mani kumar, notifications@github.com
wrote:
I'm experiencing this issue on Pixel 5 physical hardware. Very annoying.
Please provide a fix Google.Same here :( have you found any solution or workaround?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebase-android-sdk/issues/1662#issuecomment-740376218,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE2IJOSN2RDTA6DTDEGLRLTSTWXGFANCNFSM4N5MNLAA
.
My first encounter with this similar problem was just one month ago. It was initially solved temporarily by adding implementation 'com.google.android.gms:play-services-basement:17.5.0'. But now that is not working anymore and the exception keeps being logged again in the console and that annoys a lot.
And yeah, I experience it with real device.
I had the same problem with 'com.google.android.gms:play-services-location:17.1.0'
This is very frustrating and it makes going debugging a pain in the ass.
I've started filter debug console with "!W/". At least it hides all these bullshit useless messages, so I can read my logs.
```
W/on.conciergeap( 5881): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/ConnectionTracker( 5881): Exception thrown while unbinding
W/ConnectionTracker( 5881): java.lang.IllegalArgumentException: Service not registered: lu@a85b5d4
W/ConnectionTracker( 5881): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1751)
W/ConnectionTracker( 5881): at android.app.ContextImpl.unbindService(ContextImpl.java:1776)
W/ConnectionTracker( 5881): at android.content.ContextWrapper.unbindService(ContextWrapper.java:741)
W/ConnectionTracker( 5881): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):1)
W/ConnectionTracker( 5881): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):2)
W/ConnectionTracker( 5881): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):9)
W/ConnectionTracker( 5881): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):3)
W/ConnectionTracker( 5881): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120700-0):3)
W/ConnectionTracker( 5881): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
````
This is what I am having right now since last month:
in app/build.gradle
// Add the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics-ktx'
// Add the SDK for Firebase Cloud Messaging
implementation 'com.google.firebase:firebase-messaging-ktx'
// Temporary fix for Firebase recent issue at https://github.com/firebase/firebase-android-sdk/issues/1662
implementation 'com.google.android.gms:play-services-basement:17.5.0'
firebase_analytics: ^6.2.0
firebase_core: ^0.5.2+1
firebase_messaging: ^7.0.3
flutter doctor -v
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19042.630], locale id-ID)
• Flutter version 1.22.4 at C:\flutter
• Framework revision 1aafb3a8b9 (4 weeks ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Android\Sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = C:\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[!] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code, 64-bit edition (version 1.51.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.17.0
[√] Connected device (1 available)
• Redmi Note 8 (mobile) • 152aa503 • android-arm64 • Android 10 (API 29)
! Doctor found issues in 1 category.
The exception goes like below and it keeps printing out whatever I do in the app:
W/ConnectionTracker(22998): Exception thrown while unbinding
W/ConnectionTracker(22998): java.lang.IllegalArgumentException: Service not registered: lu@1c22ef
W/ConnectionTracker(22998): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759)
W/ConnectionTracker(22998): at android.app.ContextImpl.unbindService(ContextImpl.java:1786)
W/ConnectionTracker(22998): at android.content.ContextWrapper.unbindService(ContextWrapper.java:751)
W/ConnectionTracker(22998): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):1)
W/ConnectionTracker(22998): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):2)
W/ConnectionTracker(22998): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):9)
W/ConnectionTracker(22998): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3)
W/ConnectionTracker(22998): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3)
W/ConnectionTracker(22998): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(22998): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(22998): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):5)
@ashwinraghav Is this actually being worked on?
The temporary fix you provided in your comment on June 29 obviously does not work.
Would be really good to get a fix progress update :-)
Adding my SHAs to Firebase console doesn't fix this either. Everything works oki, but only for first build and that's all!
At this point I think I tried all options that I could find in different sources.
I am also having this issue both on a Pixel 5 emulator as well as on my physical device.
Having the same issue with
flutter: 1.22.4
firebase_core: 0.5.3
firebase_analytics: 6.3.0
Pixel 3 Android 10
As this issue seems to have gone stale, maybe people still experiencing this problem should each be creating a new issue rather than adding further comments to this one.
No one is assigned to this, the contributor isn't responding and we are 6 months down the road waiting for a fix. Then hopefully someone in Google has to read them to mark them as duplicates. Just a thought :-)
Maybe each of us should be creating a new issue for this given that no one is assigned to it, the contributor isn't responding and we are 6 months down the road with this issue. Then at least someone in Google has to mark them as duplicates :-)
that's a great idea. You wanna do it?
Sure...when I get a chance...
Sure...when I get a chance...
Great. I'm happy to do it, but I don't want us both doing it.
same issue here !
V/FA ( 6572): Inactivity, disconnecting from the service
W/ConnectionTracker( 6572): Exception thrown while unbinding
W/ConnectionTracker( 6572): java.lang.IllegalArgumentException: Service not registered: lv@54085be
W/ConnectionTracker( 6572): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1352)
W/ConnectionTracker( 6572): at android.app.ContextImpl.unbindService(ContextImpl.java:1553)
W/ConnectionTracker( 6572): at android.content.ContextWrapper.unbindService(ContextWrapper.java:723)
W/ConnectionTracker( 6572): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):1)
W/ConnectionTracker( 6572): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):2)
W/ConnectionTracker( 6572): at lw.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):9)
W/ConnectionTracker( 6572): at lg.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):3)
W/ConnectionTracker( 6572): at eg.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):3)
W/ConnectionTracker( 6572): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
W/ConnectionTracker( 6572): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/ConnectionTracker( 6572): at iz.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040406-0):5)
Same here
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjl@6ebd1d4
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1757)
at android.app.ContextImpl.unbindService(ContextImpl.java:1874)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:792)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzir.zzag(com.google.android.gms:play-services-measurement-impl@@18.0.0:245)
at com.google.android.gms.measurement.internal.zzir.zzal(com.google.android.gms:play-services-measurement-impl@@18.0.0:262)
at com.google.android.gms.measurement.internal.zzir.zzc(com.google.android.gms:play-services-measurement-impl@@18.0.0:336)
at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@18.0.0:2)
at com.google.android.gms.measurement.internal.zzal.run(com.google.android.gms:play-services-measurement-impl@@18.0.0:7)
As this issue seems to have gone stale, maybe people still experiencing this problem should each be creating a new issue rather than adding further comments to this one.
No one is assigned to this, the contributor isn't responding and we are 6 months down the road waiting for a fix. Then hopefully someone in Google has to read them to mark them as duplicates. Just a thought :-)
@GrahamDi it has been labeled and given priority P:1. Do you think we also need to open new thread? Maybe one more focused thread is better than scattered ones (although scattered ones can brought their attention into this).
Yeah, maybe you are right. I have opened a new issue as you see. I am not that expectant of a quick fix to this as it appears to only impact debugging, but 6 months without an update is a bit ridiculous.
Yeah, maybe you are right. I have opened a new issue as you see. I am not that expectant of a quick fix to this as it appears to only impact debugging, but 6 months without an update is a bit ridiculous.
@GrahamDi I have the exact same problem
What do you mean by it only impacts debugging? so if I release my app this won't result in crashes or errors?
To anyone thinking this error is not letting them interact with the database, I am still having this issue, though I am now able to read and write after following closely the "Get Started" documentatiin section from the Firebase site.
At least for my case, the error is NOT affecting the read/write operations on my realtime database.
@DevYahia I don't see anyone reporting app crashes or db read/write failures. Certainly I'm not. It is a warning that we only see when debugging as far as I can determine.
Folks,
Apologies for the silence from our end. We'll do better!
We lost sight of this since it was deemed initially that these are noisy logs more than anything else (internal bug reference), with crashes being a rare theoretical possibility, but not something we could internally reproduce
I can't parse from the thread whether folks are seeing crashes(other than in Flutter), missing data, faulty behavior or whether the logs are raising false alarms. If you are seeing crashes, or faulty product behavior please drop a note.
Again, sry bout the delays and thanks for your patience!
Same here
2020-12-10 04:42:13.061 26299-26332/com.my.package W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: lv@bc6e936
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1289)
at android.app.ContextImpl.unbindService(ContextImpl.java:1483)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:648)
at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):1)
at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):2)
at lw.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):9)
at lg.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):3)
at eg.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at iz.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040700-0):5)
Same issue with emulator and real device
Same issue.
Same issue
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzjf@3aad24f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50)
at com.google.android.gms.measurement.internal.zzin.zzah(com.google.android.gms:play-services-measurement-impl@@17.4.1:246)
at com.google.android.gms.measurement.internal.zzin.zzam(com.google.android.gms:play-services-measurement-impl@@17.4.1:263)
at com.google.android.gms.measurement.internal.zzin.zzc(com.google.android.gms:play-services-measurement-impl@@17.4.1:330)
at com.google.android.gms.measurement.internal.zziq.zza(com.google.android.gms:play-services-measurement-impl@@17.4.1:2)
at com.google.android.gms.measurement.internal.zzah.run(com.google.android.gms:play-services-measurement-impl@@17.4.1:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.gms.measurement.internal.zzfy.run(com.google.android.gms:play-services-measurement-impl@@17.4.1:21)
These are my setting and problem still persists.
pubspec.yaml file
cupertino_icons: ^1.0.1
firebase_core: ^0.5.3
firebase_auth: ^0.18.4+1
firebase_database: ^4.4.0
Project level build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.4'
}
App level build.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation platform('com.google.firebase:firebase-bom:26.1.1')
}
The error occurs after adding this line to App level build.gradle file
apply plugin: 'com.google.gms.google-services'
I have same issue
@amroomi @CoderJava @nikomp @DanishAmjad12 @brunoaduarte
Can you clarify whether you seeing these errors/exceptions in logs or whether there are crashes ?
@amroomi @CoderJava @nikomp @DanishAmjad12 @brunoaduarte
Can you clarify whether you seeing these errors/exceptions in logs or whether there are crashes ?
It's just a warning, doesn't crash the app.
@amroomi @CoderJava @nikomp @DanishAmjad12 @brunoaduarte
Can you clarify whether you seeing these errors/exceptions in logs or whether there are crashes ?It's just a warning, doesn't crash the app.
I'm seeing in error logs, and some crashes on firebase crashlytics too.
@ashwinraghav This exception I can see on Android Studio Run Log. The app works fine in the emulator and real device no crash.
I have the same issue after update on 1.25.0-8.0.pre and now app crashed after start google maps with new issue:
E/AndroidRuntime(19410): FATAL EXCEPTION: main
E/AndroidRuntime(19410): java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"
E/AndroidRuntime(19410): at io.flutter.plugin.platform.VirtualDisplayController.onFlutterViewAttached(VirtualDisplayController.java:181)
E/AndroidRuntime(19410): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:233)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime(19410): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime(19410): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(19410): at android.os.MessageQueue.next(MessageQueue.java:336)
E/AndroidRuntime(19410): at android.os.Looper.loop(Looper.java:197)
E/AndroidRuntime(19410): at android.app.ActivityThread.main(ActivityThread.java:8154)
E/AndroidRuntime(19410): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(19410): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
E/AndroidRuntime(19410): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I/Process (19410): Sending signal. PID: 19410 SIG: 9
Lost connection to device.
Fatal Exception: java.lang.SecurityException: Not allowed to bind to service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms }
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1741)
at android.app.ContextImpl.bindService(ContextImpl.java:1651)
at android.content.ContextWrapper.bindService(ContextWrapper.java:705)
at com.google.android.gms.common.stats.ConnectionTracker.zza(ConnectionTracker.java:41)
at com.google.android.gms.common.stats.ConnectionTracker.zza(ConnectionTracker.java:10)
at com.google.android.gms.common.stats.ConnectionTracker.bindService(ConnectionTracker.java:43)
at com.google.android.gms.cloudmessaging.zzf.zza(zzf.java:17)
at com.google.android.gms.cloudmessaging.zze.zza(zze.java:16)
at com.google.android.gms.cloudmessaging.zze.zza(zze.java:12)
at com.google.android.gms.cloudmessaging.CloudMessagingReceiver.zzb(CloudMessagingReceiver.java:43)
at com.google.android.gms.cloudmessaging.CloudMessagingReceiver.zza(CloudMessagingReceiver.java:59)
at com.google.android.gms.cloudmessaging.zzd.run(zzd.java:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run(zza.java:6)
at java.lang.Thread.run(Thread.java:919)
Firebase crashlytics logs.
some users effected.
Same me,
Im using
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.firebase:firebase-database:19.5.1'
Same issue
W/ConnectionTracker( 8487): Exception thrown while unbinding
W/ConnectionTracker( 8487): java.lang.IllegalArgumentException: Service not registered: ls@361a9e8
W/ConnectionTracker( 8487): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
W/ConnectionTracker( 8487): at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
W/ConnectionTracker( 8487): at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
W/ConnectionTracker( 8487): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):1)
W/ConnectionTracker( 8487): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):2)
W/ConnectionTracker( 8487): at lt.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):9)
W/ConnectionTracker( 8487): at ld.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):3)
W/ConnectionTracker( 8487): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):3)
W/ConnectionTracker( 8487): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
W/ConnectionTracker( 8487): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker( 8487): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):5)
@pamir72 @DanishAmjad12 folks, your crashes look unrelated to the issue discussed here, can you clarify why you think they are relevant here?
@vkryachko
Because both issues appeared at the same time after the upgrade and because @ashwinraghav asked for crashes
1) first:
W/ConnectionTracker(22117): Exception thrown while unbinding
W/ConnectionTracker(22117): java.lang.IllegalArgumentException: Service not registered: lu@542f0d9
W/ConnectionTracker(22117): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1562)
W/ConnectionTracker(22117): at android.app.ContextImpl.unbindService(ContextImpl.java:1692)
W/ConnectionTracker(22117): at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
W/ConnectionTracker(22117): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):1)
W/ConnectionTracker(22117): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):2)
W/ConnectionTracker(22117): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):9)
W/ConnectionTracker(22117): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):3)
W/ConnectionTracker(22117): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):3)
W/ConnectionTracker(22117): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
W/ConnectionTracker(22117): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(22117): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100700-0):5)
2) second:
E/AndroidRuntime(19410): FATAL EXCEPTION: main
E/AndroidRuntime(19410): java.lang.AbstractMethodError: abstract method "void io.flutter.plugin.platform.PlatformView.onFlutterViewAttached(android.view.View)"
E/AndroidRuntime(19410): at io.flutter.plugin.platform.VirtualDisplayController.onFlutterViewAttached(VirtualDisplayController.java:181)
E/AndroidRuntime(19410): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:233)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/AndroidRuntime(19410): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(19410): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:738)
E/AndroidRuntime(19410): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(19410): at android.os.MessageQueue.next(MessageQueue.java:336)
E/AndroidRuntime(19410): at android.os.Looper.loop(Looper.java:197)
E/AndroidRuntime(19410): at android.app.ActivityThread.main(ActivityThread.java:8154)
E/AndroidRuntime(19410): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(19410): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
E/AndroidRuntime(19410): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I/Process (19410): Sending signal. PID: 19410 SIG: 9
Lost connection to device.
So just to give an update to everyone interested: we've confirmed with the team that the warning is benign(although admittedly annoying). Feel free to ignore it until we make the fix that will "silence" this warning.
_Once again it's not a fatal error, it's just a logcat warning_
Any errors that happen before or after it are very likely unrelated
@pamir72 your stack trace looks like a problem with flutter, I could find a similar issue https://github.com/flutter/flutter/issues/40126, please see if it is related.
@vkryachko Thanks very much for your update. I believe most of us saw that it was not an issue that compromised our apps but it is, as you say, [very] annoying. The issue I had was the 6 month wait to see some movement on this.
Much appreciate you guys focusing on it again. :-)
Log show when not action in app
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: lu@c38f59c
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1671)
at android.app.ContextImpl.unbindService(ContextImpl.java:1781)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:730)
at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):1)
at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):2)
at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):9)
at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3)
at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):5)
Thanks for the update.. Same error, but not reported in Crashlytics
There are 2 parts to this issue, both of which can be fixed by updating your dependencies to the following:
implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'
The above will silence the warnings, in the meantime our engineers will be working to fix the problem in Google Play Services to make these warnings go away completely(no SDK updates will be required on the developers' part).
@vkryachko Thanks for update. The fix you recommend has been mentioned before and seems to work for some people but not for others (as evidenced by several comments above). I fall into the latter category. Good to hear the true fix is being worked on.
So just to give an update to everyone interested: we've confirmed with the team that the warning is benign(although admittedly annoying). Feel free to ignore it until we make the fix that will "silence" this warning.
_Once again it's not a fatal error, it's just a logcat warning_
Any errors that happen before or after it are very likely unrelated
Thanks for the update!
It did look innocent, but it's a burden while developing and trying to look at (for) relevant logs.
implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.android.gms:play-services-basement:17.5.0'
Even if I change gradle like this, I still get an error.
W/ConnectionTracker: Exception thrown while unbinding
java.lang.IllegalArgumentException: Service not registered: lv@e66c395
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1289)
at android.app.ContextImpl.unbindService(ContextImpl.java:1502)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:648)
at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):1)
at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):2)
at lw.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):9)
at lg.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):3)
at eg.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at iz.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040800-0):5)
W/ConnectionTracker(20646): Exception thrown while unbinding
W/ConnectionTracker(20646): java.lang.IllegalArgumentException: Service not registered: lv@9bd6d41
W/ConnectionTracker(20646): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1156)
W/ConnectionTracker(20646): at android.app.ContextImpl.unbindService(ContextImpl.java:1452)
W/ConnectionTracker(20646): at android.content.ContextWrapper.unbindService(ContextWrapper.java:644)
W/ConnectionTracker(20646): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):1)
W/ConnectionTracker(20646): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):2)
W/ConnectionTracker(20646): at lw.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):9)
W/ConnectionTracker(20646): at lg.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):3)
W/ConnectionTracker(20646): at eg.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):3)
W/ConnectionTracker(20646): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
W/ConnectionTracker(20646): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/ConnectionTracker(20646): at iz.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (040300-0):5)
I have same issue.
There is no problem on Android emulator. But in android phones, it gives this error.
I added to playstore for internal test. There is a crash report with 'java.lang.NoClassDefFoundError: aewt' exception.
Hey folks,
As many of you have pointed out, it turns out that there exist some device configurations that trigger the _warning_ even with the workaround I provided above.
Unfortunately there is nothing more we can do to "silence" the warning on the SDK side. The warning is caused by "Google Play Services" itself. The good news is that the root cause of the issue is now fixed, however it will roll out to devices around February, so we will have to live with this warning for a few months.
I understand that it is causing inconvenience for developers, but fwiw it's a warning not a crash. So please bear with us till the update gets rolled out. Thanks
PS: Many of you have commented that this warning is sometimes followed by a crash(with its own exception), I am fairly confident that in most cases, the crash is completely unrelated to this warning and just so happens to occur right after it. So please investigate your crashes independently, just ignoring the warning. If however you think that the crash is related, please provide:
@vkryachko
Thanks very much for focusing on this. I can wait until February :-)
I have never experienced a crash, just the annoyance. The warnings can be filtered out in the debug tab on VSCode and will do that until it goes away. Thanks again.
Hey folks,
As many of you have pointed out, it turns out that there exist some device configurations that trigger the _warning_ even with the workaround I provided above.
Unfortunately there is nothing more we can do to "silence" the warning on the SDK side. The warning is caused by "Google Play Services" itself. The good news is that the root cause of the issue is now fixed, however it will roll out to devices around February, so we will have to live with this warning for a few months.
I understand that it is causing inconvenience for developers, but fwiw it's a warning not a crash. So please bear with us till the update gets rolled out. Thanks
PS: Many of you have commented that this warning is sometimes followed by a crash(with its own exception), I am fairly confident that in most cases, the crash is completely unrelated to this warning and just so happens to occur right after it. So please investigate your crashes independently, just ignoring the warning. If however you think that the crash is related, please provide:
- full stack traces at the event of crash
- relevant dependencies of your app
- ideally steps to reproduce
Great! Thanks for keeping us updated.
Hi.. I m getting the same warning in Logcate.
I want to know this warning is affected by Application performance?
Library :
// Add the Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
// Recommended: Add the Google Analytics SDK.
implementation 'com.google.firebase:firebase-analytics:18.0.0'
/* AdMob */
implementation 'com.google.firebase:firebase-ads:19.6.0'
/*Firebase Push Notification */
implementation 'com.google.firebase:firebase-messaging:21.0.0'
/* Firebase RemoteConfig */
implementation 'com.google.firebase:firebase-config:20.0.2'
Gathered the feedback from this thread and others so this answer can encapsulate as many fixes as possible.
Thanks for those that helped with their contributions. 👍
Please send me fix way it?
Same for me:
implementation platform('com.google.firebase:firebase-bom:26.2.0')
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-inappmessaging-display-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-analytics-ktx'
Hi folks, I also have the same problem, but while the emulator is running, there is no problem in api 29 version, I encounter this warning in api 26.
Most helpful comment
Adding:
seems to solve the issue (the warning is no longer logged).