android
performance_error
ai_generated
true
ANR: Application Not Responding on main thread
ID: android/anr-main-thread
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 14 | active | — | — | — |
Root Cause
Long operation blocking UI thread causes ANR.
genericWorkarounds
-
92% success Move long operations to background: Coroutines or WorkManager
-
88% success Use StrictMode in debug to detect main thread violations
Dead Ends
Common approaches that don't work:
-
Increase ANR timeout
92% fail
Not configurable by app
-
Use StrictMode.permitAll()
78% fail
Hides real threading issues