ERROR: R8: Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: ...)
R8 found references to classes that aren't in your dependencies.
Missing classes detected while running R8R8 Missing class referenced fromERROR: R8: Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: ...) Meaning
Add the suggested -dontwarn rules from build/outputs/mapping/release/missing_rules.txt or include the library that provides the class.
Common causes
- Optional dependency absent
- Library with optional classes
- Shrinking enabled
⚡ Quick fix
- Copy rules from missing_rules.txt
- Add the dependency
- Add -dontwarn for optional classes
Detailed fix by platform
ProGuard
-dontwarn org.slf4j.impl.StaticLoggerBinder
How to diagnose
- File — missing_rules.txt?
- Class — optional?
- Dependency — needed?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- ClassNotFoundException only in release java.lang.ClassNotFoundException: Didn't find class "com.example.Model" on path: DexPathList
- Crashlytics: unsymbolicated stack traces / mapping file not uploaded Crashlytics: Missing deobfuscation mapping file
- Error building the app bundle Execution failed for task ':app:bundleRelease'. Error while executing bundletool
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- INSTALL_FAILED_USER_RESTRICTED INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo)
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Nov 2026