1) When using Firebase Authentication:
Make sure your Android SDK is up to date. You can do this from Android Studio:
• Go to Tools > SDK Manager.
• Check the installed SDK components.
• If any have updates available, update them.
Updating the SDK resolved the problem for me.
⸻
2) When using Firebase Firestore:
I discovered there were conflicting versions of Google Play Services installed. To check this:
• Use the following ADB command to list the installed versions:
adb shell dumpsys package com.google.android.gms | grep versionName
• In my case, I saw two versions:
• versionName=25.08.32
• versionName=24.23.35
To fix the conflict:
• Open your device Settings.
• Go to Apps > Google Play Services.
• Reset Google Play Services to the default (base) version.
• Run the ADB command again to confirm that only one version remains (in my case, versionName=24.23.35).
After this cleanup, the error disappeared.