when I tried to run my application its show the error below
Error running Dashboard: The activity must be exported or contain an intent-filter
How can I solve this error?
I changed the Select Run/Debug Configuration
from my MainActivity
to App
and it started working. Select App configuration snapshot:
Double check your manifest, your first activity should have tag
<intent-filter> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter>
inside of activity tag.
If that doesn't work, look for target build, which located in the left of run button (green-colored play button), it should be targeting "app" folder, not a particular activity. if it doesn't targeting "app", just click it and choose "app" from drop down list.
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With