Why Does I'm Getting "service Not Registered" Exception, Even Though I Not Used Any Service In Android - Java/kotlin?
Solution 1:
Add this to your build.gradle
dependencies:
dependencies {
implementation 'com.google.android.gms:play-services-basement:17.5.0'
}
Solution 2:
This answer is last updated on: 12-Feb-2021
No action is required from our side. Just wait when Google will release this "Fixed" issue in February 2021 approximately.
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 Bumping this reply again, so it's more visible for folks.
Once again: The warning is benign and is safe to ignore. The fix will get rolled out around Feb 2021, no action is required on developers' side, the fix will apply to google play services itself and existing apps will stop generating the warning.
Source: https://github.com/firebase/firebase-android-sdk/issues/1662#issuecomment-756917362
Solution 3:
I recently had a similar issue but with AdMob in the android emulator. Search for a solution but I found nothing. finally, I close the emulator, open the AVD manager wipe emulator data, reopen the emulator then the warning exception was gone.
Solution 4:
Dev's who are facing issue on this problem i have checked a lot with com.google.firebase:firebase-bom:26.1.1 i think so some dependencies has to be changed on flutter side so as to support the latest one.
But still you can have your app working without any exception using this : in your //build.gradle file ...
Just replace the bom version or you can have my own which i am using too..
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'
}
Post a Comment for "Why Does I'm Getting "service Not Registered" Exception, Even Though I Not Used Any Service In Android - Java/kotlin?"