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.