An error occurred while enabling the Android Application automatically.

Source: Internet
Author: User

In fact, this problem is not a problem. It will only happen when you start to have some contact with intent-filter. I generally know that I will not commit another crime.

Back to the truth:

Symptoms

Console red warning: No launcher activity found! The launch will only sync the application packag

Disease Source

Just look at the text,The system cannot find the started activity.Of course, even if you click Run,ProgramIt will not be automatically started after the upload, because it cannot be found.

Now that we know the root cause, the actual reason on the internet is that the following lines are missing:

    intent-filter  >    action   Android: name   = "android. intent. action. main " />     Category   Android: name   = "android. intent. category. launcher " />     intent-filter  > 

This error is generally not common because it is automatically generated by the system unless you delete it or manually create the first activity. The entry activity cannot have multiple actions, that is, the <action Android: Name = "android. intent. action. main "/> indicates that the activity is the main entry of the application. If you add another action, an error is returned. Solution: Add a new intent filter to install the action. If it is another activity, you can have multiple actions in one filter.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.