Firebase-android-sdk: java.lang.IllegalArgumentException: Service not registered: lu@5bcf89b

Created on 9 Dec 2020  ·  19Comments  ·  Source: firebase/firebase-android-sdk

My environment

flutter doctor -v
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.20270.1], locale en-ZA)
• 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 D:\Android
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = D:\Android
• ANDROID_SDK_ROOT = D:\Android
• 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 (version 1.51.1)
• VS Code at C:\Users\dicki\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.17.0

[√] Connected device (2 available)
• FIG LX1 (mobile) • HBEDU18117010246 • android-arm64 • Android 9 (API 28)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

! Doctor found issues in 1 category.

Ignore the Android Studio errors shown above as this is simply a reporting error in Flutter doctor in version 1.22.4. The plugins are installed and fully working


  • Flutter Packages: Google Firebase, Firestore, Authentication, etc.

cloud_functions: ^0.7.2
firebase_analytics: ^6.3.0
firebase_core: ^0.5.3
firebase_auth: ^0.18.4+1
firebase_database: ^4.4.0
firebase_messaging: ^7.0.3
firebase_storage: ^5.2.0
google_sign_in: ^4.5.6


  • build.gradle dependencies

implementation platform('com.google.firebase:firebase-bom:26.1.0')
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-database'
implementation 'com.google.firebase:firebase-firestore'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-storage'

def billing_version = "3.0.0"
implementation 'com.android.billingclient:billing:$billing_version'
implementation 'com.google.android.gms:play-services-basement:17.5.0'

Describe the problem

The following warning messages are shown repeatedly while trying to debug an app on emulators or physical devices. Makes the debugging process / experience less than ideal.

W/ConnectionTracker(12809): Exception thrown while unbinding
W/ConnectionTracker(12809): java.lang.IllegalArgumentException: Service not registered: lu@5bcf89b
W/ConnectionTracker(12809): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1755)
W/ConnectionTracker(12809): at android.app.ContextImpl.unbindService(ContextImpl.java:1925)
W/ConnectionTracker(12809): at android.content.ContextWrapper.unbindService(ContextWrapper.java:717)
W/ConnectionTracker(12809): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):1)
W/ConnectionTracker(12809): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):2)
W/ConnectionTracker(12809): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):9)
W/ConnectionTracker(12809): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):3)
W/ConnectionTracker(12809): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):3)
W/ConnectionTracker(12809): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
W/ConnectionTracker(12809): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(12809): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100408-0):5)

This similar issue https://github.com/firebase/firebase-android-sdk/issues/1662 was raised 6 months ago and has many people waiting for a solution. However, there is still no one assigned nor is the single contributor responding to questions on progress. I am therefore raising a new issue in the hope that it will receive some attention.

Many thanks.

Steps to reproduce:

Run debug (in VSCode in my case) on the emulator or a USB connected device and the messages will soon appear, and continue to do so.

Relevant Code:

Not applicable - see environment details above for gradle dependencies.

needs-triage

Most helpful comment

Duplicate of #1662

All 19 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Have the same issue:

Screen Shot 2020-12-09 at 8 30 01 PM

    firebase_core: ^0.5.3
    firebase_auth: ^0.18.4+1
    firebase_analytics: ^6.3.0
    firebase_database: ^4.4.0
    firebase_storage: ^5.2.0

Same issue here.

Same here as well

Same here with:

  firebase_core: ^0.5.3
  firebase_messaging: 8.0.0-dev.10

I am facing this issue as well and it really bothers as I'm not sure if it's the code issues or what. For me, I've tested a couple of times regarding the dependencies and turns out removing the firebase analytics works for me. Hope it helps

Same issue:

firebase_core: ^0.5.3
firebase_auth: ^0.18.4
cloud_firestore: ^0.14.4

same here:

# firebase
firebase_core: ^0.5.3
firebase_auth: ^0.18.4+1
W/ConnectionTracker(13549): Exception thrown while unbinding
W/ConnectionTracker(13549): java.lang.IllegalArgumentException: Service not registered: lu@51c8f95
W/ConnectionTracker(13549):     at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759)
W/ConnectionTracker(13549):     at android.app.ContextImpl.unbindService(ContextImpl.java:1786)
W/ConnectionTracker(13549):     at android.content.ContextWrapper.unbindService(ContextWrapper.java:751)

Same issue, i just use firebase_messaging: ^7.0.3

My output:
W/ConnectionTracker(32200): Exception thrown while unbinding W/ConnectionTracker(32200): java.lang.IllegalArgumentException: Service not registered: lu@a000a0d W/ConnectionTracker(32200): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1570) W/ConnectionTracker(32200): at android.app.ContextImpl.unbindService(ContextImpl.java:1702) W/ConnectionTracker(32200): at android.content.ContextWrapper.unbindService(ContextWrapper.java:727) W/ConnectionTracker(32200): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):1) W/ConnectionTracker(32200): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):2) W/ConnectionTracker(32200): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):9) W/ConnectionTracker(32200): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3) W/ConnectionTracker(32200): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):3) W/ConnectionTracker(32200): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) W/ConnectionTracker(32200): at java.util.concurrent.FutureTask.run(FutureTask.java:266) W/ConnectionTracker(32200): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):5)

Any news? I have the same issue

W/ConnectionTracker(30432): Exception thrown while unbinding W/ConnectionTracker(30432): java.lang.IllegalArgumentException: Service not registered: lu@af38353 W/ConnectionTracker(30432): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870) W/ConnectionTracker(30432): at android.app.ContextImpl.unbindService(ContextImpl.java:1848) W/ConnectionTracker(30432): at android.content.ContextWrapper.unbindService(ContextWrapper.java:755) W/ConnectionTracker(30432): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):1) W/ConnectionTracker(30432): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):2) W/ConnectionTracker(30432): at lv.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):9) W/ConnectionTracker(30432): at lf.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3) W/ConnectionTracker(30432): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3) W/ConnectionTracker(30432): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) W/ConnectionTracker(30432): at java.util.concurrent.FutureTask.run(FutureTask.java:266) W/ConnectionTracker(30432): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):5)

@NarHakobyan Seems like https://github.com/firebase/firebase-android-sdk/issues/1662 has started up again so hopefully we'll get resolution there. @ashwinraghav is responding on that issue and @vkryachko is assigned.

@GrahamDi thanks for info 🙋‍♂️

same here

Same here

W/ConnectionTracker( 6660): Exception thrown while unbinding
W/ConnectionTracker( 6660): java.lang.IllegalArgumentException: Service not registered: ls@612e5ea
W/ConnectionTracker( 6660): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1757)
W/ConnectionTracker( 6660): at android.app.ContextImpl.unbindService(ContextImpl.java:1874)
W/ConnectionTracker( 6660): at android.content.ContextWrapper.unbindService(ContextWrapper.java:792)
W/ConnectionTracker( 6660): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):1)
W/ConnectionTracker( 6660): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):2)
W/ConnectionTracker( 6660): at lt.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):9)
W/ConnectionTracker( 6660): at ld.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):3)
W/ConnectionTracker( 6660): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):3)
W/ConnectionTracker( 6660): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker( 6660): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker( 6660): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (150400-0):5)

Same Here

W/ConnectionTracker(22108): Exception thrown while unbinding
W/ConnectionTracker(22108): java.lang.IllegalArgumentException: Service not registered: ls@30256f4
W/ConnectionTracker(22108): at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1759)
W/ConnectionTracker(22108): at android.app.ContextImpl.unbindService(ContextImpl.java:1787)
W/ConnectionTracker(22108): at android.content.ContextWrapper.unbindService(ContextWrapper.java:751)
W/ConnectionTracker(22108): at ci.f(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):1)
W/ConnectionTracker(22108): at ci.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):2)
W/ConnectionTracker(22108): at lt.E(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):9)
W/ConnectionTracker(22108): at ld.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3)
W/ConnectionTracker(22108): at ef.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):3)
W/ConnectionTracker(22108): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
W/ConnectionTracker(22108): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/ConnectionTracker(22108): at iy.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (120400-0):5)

same here

same here

Duplicate of #1662

Ditto!
java.lang.IllegalArgumentException: Service not registered: lu@6ca864b

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gwoodhouse picture gwoodhouse  ·  4Comments

ANR
RodolfoGS picture RodolfoGS  ·  4Comments

jkasten2 picture jkasten2  ·  4Comments

AyatKhraisat picture AyatKhraisat  ·  6Comments

SteveBurkert picture SteveBurkert  ·  3Comments