R8: Missing classes detected while running R8 (missing_rules.txt) Android Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

ERROR: R8: Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: ...)

R8 found references to classes that aren't in your dependencies.

Exact message you may see Missing classes detected while running R8R8 Missing class referenced fromERROR: R8: Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: ...)
Seen on: Android

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

  1. Copy rules from missing_rules.txt
  2. Add the dependency
  3. Add -dontwarn for optional classes

Detailed fix by platform

ProGuard

  1. -dontwarn org.slf4j.impl.StaticLoggerBinder

How to diagnose

  1. File — missing_rules.txt?
  2. Class — optional?
  3. 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:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

ClassNotFoundException only in release — java.lang.ClassNotFoundException: Didn't find class "com.example.Model" on path: DexPathList (Android)ClassNotFoundExceptio…Crashlytics: unsymbolicated stack traces / mapping file not uploaded — Crashlytics: Missing deobfuscation mapping file (Android)Crashlytics: unsymbol…Error building the app bundle — Execution failed for task ':app:bundleRelease'. Error while executing bundletool (Android)Error building the ap…fatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already ex…Gson: Unable to invoke no-args constructor — java.lang.RuntimeException: Unable to invoke no-args constructor for interface com.example.Item. Registering an InstanceCreator with Gson for this type may fix this problem. (Android)Gson: Unable to invok…Lint found fatal errors while assembling a release target — Lint found fatal errors while assembling a release target / lintVitalRelease FAILED (Android)Lint found fatal erro…R8: Missing class — ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules (missing_rules.txt) (Android)R8: Missing classR8: NoSuchFieldError / NoSuchMethodError only in release — java.lang.NoSuchMethodError: No static method foo(Lx;)V in class Lcom/example/Y; or its super classes (Android)R8: NoSuchFieldError …R8: Missi…

Explore the map of this error Full error map →

🧠 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.