To do Android phone development, the framework and packages source files are often imported into eclipse, because the import is not complete, the source file will appear error prompts, people look very uncomfortable. This problem can be solved by setting
Select Windows-->perferences-->editors-->text Editor-->annotation-->error Item
There are three options in it,
Tick the left of the code window when the first item is marked wrong (light cannon, small fork, exclamation point, etc.)
Tick the second item when a marker appears to the right of the Code window (a small square appears on the border outside the vertical scroll bar)
Mark the third item with a wavy line under the code of the error
To keep eclipse from compiling automatically, you can remove project--Build automatically
How to remove the error message to the left of the eclipse source file