When I see a red exclamation mark in Eclipse next to my project name, how do I figure out what the error is? There is no error message. All I get is "Your project contains errors..."
问题:
回答1:
Go to the Problems tab within eclipse, and a detailed list of any project errors will be available there.
If it's not open, go to: Window > show View > Problems
回答2:
Its most likely a build path error. Right click on the project -> properties -> build path. Look for an error there.
Also, look at the error log...should pop up there.
回答3:
look for it into the console... or may be your drawable image name is having capital letters, spaces, or a minus sign. In res/drawable folder, only names with 0 to 9, a to z and underscore_ are allowed
回答4:
Here is a simple solution. I had the same problem when I started.
You will see 3 tabs on the bottom. "Console", "Logcat", "Error"
Logcat is most likely the best spot to find it if it is a arithmetic error or something you wrote down was wrong. You may find the error line inside here as well.
Error is the system errors in the system. Different requirements for jars, or project requires this version and your this version.
Now if you can't find this 2. On the bottom left corner of the screen you will see a tiny column and a + symbol click it and get the error and logcat.