Android stdio reports an error: “XXX keeps stopping” solution

Reason: the reason for this is activity_ The layout in main.xml conflicts with the code written in mainactivity.java

Solution: check the conflicts in the code and change the conflicting parts to be consistent.

Read More: