In Eclipse, my code will not compile. There is a red X next to the project name and I get the warning to fix my app but I am not told what the problem is. Normally I see the error in the console and in red but occasionally no error message is shown. This is frustrating as it makes it very hard to find the error. How can I figure out where the problem is?
Share
In these cases that you get this message exception:
Your project contains error(s), please fix it before running itdo the following steps:1) Restart eclipse and clean your project. If problem is not solved yet go to step 2
2) This can also be caused by an out of date “Debug Certificate” fixed as follows:
Delete your debug certificate under
~/.android/debug.keystore(on Linux and Mac OS X); the directory is something like%USERPROFILE%\.androidon Windows.The Eclipse plugin should then generate a new certificate when you next try to build a debug package. You may need to clean and then build to generate the certificate.
3) before rebuilding your project uninstall you app from device or emulator
Enjoy!
my reference