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?
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
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!
just add intent-filter Tag inside your activity
for example ::
Just Select App from dropdown menu with Run(green play icon). it will run the whole the App not the specific Activity. if it doesn't help try to use in that activity in ManiFest.xml file. thankyou
In manifest.xml, select activity which u wanna start e set this informations:
Check your manifest,Open the file with .xml extension and then all your activities are listed your first activity should have this code enclosed in its tags
or there is another way u can choose from configuration which is drop down list on the left side of run button choose from App from it Hope it will help!!
it's because you are trying to launch your app from an activity that is not launcher activity. try run it from launcher activity or change your current activity category to launcher in android Manifest.