The activity must be exported or contain an intent-filter

后端 未结 10 1276
死守一世寂寞
死守一世寂寞 2020-12-01 07:12

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
10条回答
  •  春和景丽
    2020-12-01 07:58

    If you're trying to launch a specific activity instead of running the launcher one. When you select that activity. the android studio might through this error, Either you need to make it launcher activity, just like answered by few others. or you need to add android:exported="true" inside your activity tag inside manifest. It allows any external tool to run your specific activity directly without making it a launcher activity

提交回复
热议问题