i cant seem come launch my application. It gives me an error favor this: "Error running second Activity: The activity must it is in exported or save an intent-filter".

Is over there anything wrong with my manifest?




You are watching: The activity must be exported or contain an intent-filter

*

*

You should collection the Run>edit configuration to the wanted launcher activity and give the will filter in ~ the manifest to the exactly activity

below is the error developing situation

image showing untrue configuration

correct configuration and code space given below to operation Mainactivity together launcher activity

corrected configuration window


*

Get come your operation menu and select modify configuration.In the run/debug construction widows, choose your application in the left shaft (if it is no yet selected).under beginning option: launch, click the next arrow and also choose the "specified activity" option.type in the name of the task you which come launch her apps through or tab ~ above the side button(...) and also select from your activities.
*

thanks for contributing solution to stack Overflow!

Please be certain to answer the question. Provide details and also share your research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based upon opinion; earlier them increase with referrals or personal experience.

To discover more, check out our advice on writing an excellent answers.


post Your price Discard

By clicking “Post your Answer”, friend agree to our terms of service, privacy policy and cookie plan


Not the prize you're spring for? Browse various other questions tagged android android-intent or asking your very own question.


*



See more: Diy Heat Shield For Fire Pit On Deck Ing, Deck Defender & Grass Guard

site architecture / logo © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.10.29.40598


her privacy

By clicking “Accept all cookies”, you agree ridge Exchange have the right to store cookie on your an equipment and disclose info in accordance with our Cookie Policy.