The activity must be exported or contain an intent-filter

匿名 (未验证) 提交于 2019-12-03 02:00:02

问题:

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?

回答1:

I changed the Select Run/Debug Configuration from my MainActivity to App and it started working. Select App configuration snapshot:



回答2:

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!



回答3:

just add intent-filter Tag inside your activity

for example ::

    


回答4:

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



回答5:

In manifest.xml, select activity which u wanna start e set this informations:

    


回答6:

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!!



回答7:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!