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

**Code:** `R8: Missing classes detected while running R8 (missing_rules.txt)` · **Category:** Android · **Seen on:** Android

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/gradle-r8-full-mode-class-not-found)
