ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?
An Intent targets an Activity that isn’t declared in the manifest, or an implicit intent has no app to handle it.
Unable to find explicit activity classhave you declared this activity in your AndroidManifest.xmlNo Activity found to handle Intent Meaning
Every Activity must be listed in AndroidManifest.xml. For implicit intents (open URL, share, camera) there may be no installed app, and on Android 11+ package visibility can hide handlers.
Common causes
- Activity missing from AndroidManifest.xml
- Wrong package/class name
- No app installed to handle the implicit intent
- Android 11+ package visibility (<queries> missing)
⚡ Quick fix
- Declare the activity in the manifest
- Wrap implicit startActivity in try/catch
- Add <queries> for intents you resolve
Detailed fix by platform
XML
- kotlin
<activity android:name=".SettingsActivity" android:exported="false" /> <queries> <intent><action android:name="android.intent.action.VIEW" /><data android:scheme="https" /></intent> </queries>
How to diagnose
- Manifest — Activity declared?
- Intent — Explicit or implicit?
- Device — Handler app installed?
🔧 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
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- Unsupported class file major version Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
- 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 15 Oct 2026