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