-keep class com.google.android.gms.** *; -dontwarn com.google.android.gms.** If you only included play-services-base but need play-services-auth or play-services-location , some modules won’t load.
Have you run into this error causing an actual crash? Let me know in the comments – I’ve debugged a few edge cases involving certificate validation and would love to help. Happy (and less confusing) debugging!
implementation 'com.google.android.gms:play-services-auth:21.0.0' If the message is just cluttering your logcat and you want to hide it, you can filter it out using:
Add the standard Google Play Services ProGuard rules (usually automatic with com.google.gms:google-services plugin, but check manually): -keep class com
-DynamiteModule To summarize:
Add the specific required dependency:
The “local module descriptor class not found” message is Google’s way of saying “We didn’t bundle this module locally, but we’ll fetch it from the system.” That’s intentional and by design. Happy (and less confusing) debugging
local module descriptor class for com.google.android.gms.google certificates not found it means the runtime attempted to locate a local (bundled) version of a specific module ( google certificates related) but failed. It then tries to load the version from the Google Play Services APK. Is This an Error or a Warning? In most cases, this is just verbose logging, not a crash.
When you see:
Google Play Services is not a static library you fully compile into your APK. Instead, your app communicates with a “stub” that asks the Google Play Services APK (installed on the device) to provide the actual implementation. It then tries to load the version from
adb logcat | grep -v "local module descriptor class" Or, in Android Studio Logcat, add this exclusion:
| Situation | Action | |-----------|--------| | App runs fine, no crash | ✅ Ignore | | App crashes with ClassNotFoundException for a Google API | ❌ Check GMS version & dependencies | | Emulator or device without Play Services | ❌ Install GMS or switch to a proper emulator image | | Release build crash (but debug works) | ❌ Check ProGuard/R8 rules |
Failed to load module: com.google.android.gms.googlecertificates Ensure the device has Google Play Services installed and updated. 2. ProGuard/R8 is stripping required classes If you see this error accompanied by a crash during Google Sign-In or SafetyNet, your obfuscation rules might be too aggressive.