I believe many people have encountered such a situation, OK, straight into the topic!
There must be something wrong with the project (isn't that nonsense?). hehe), some friends may not know, again and again clean, but red exclamation mark is still there, now I combined with their own experience, give us a weapon, if still can not help everyone solve the problem, do not spray me is, hehe!
Method One:
It is possible that the SDK version is too low to cause the problem, try to change a higher version of the SDK.
Method Two:
It is possible that some Java source file is wrong, such as the import header does not exist, and so on, although there is no red fork in the Java file, but it is recommended to open a look, if there is a mistake, the compilation environment will help you point out, change is.
Method Three:
Check the project resource file for any errors.
Method Four ( my case is this ):
If all of the above methods have not been responded to, then right-click on your project to see if there is a problem with the Java Build path, it is possible that the referenced jar package path is incorrect or does not exist at all.
Finally, remember to clean ....
This article from "Dan Dan Home" blog, reproduced please contact the author!
Several workarounds for red exclamation marks when importing projects from Android