0

I am developing an Android application, I was doing just fine then I made some changes to the code. Everything went fine, no error messages, until I ran the code. Then I get this in a popup dialog:

Your project contains error(s), please fix them before running your application

The title of the popup dialog is Android Launch. I know this isn't much to go on, but this is all I am getting. I get nothing in the console at the bottom of Eclipse either.

The dialog message has no Details button. =/

Vukašin Manojlović
  • 2,645
  • 2
  • 21
  • 26
rlc
  • 5,809
  • 5
  • 38
  • 46
  • Assuming this is Eclipse, there should be a Details button on that dialog, plus syntax error highlights in the source editors and on the icons in the project tree. – CommonsWare Jul 01 '10 at 13:34

3 Answers3

2

This may mean that you have an error in one of the project's XML files. When an XML file is malformed (missing tags, incorrect values, etc.), Eclipse is able to sense that the project can't compile correctly, but it can't tell where the problem is. Have you added or changed any XML files since the last successful run, such as a layout resource or the manifest? If so, I'd suggest going back and checking your changes to make sure they're correct.

tlayton
  • 1,757
  • 1
  • 11
  • 13
  • It's probably related to a new .XML file, but when I go back and delete the file that I just created, the problem is still there. Then I start a new project and it works just fine again until the same error comes again. I am desperate! – rlc Jul 01 '10 at 16:04
  • I've run into this too. Make sure you're not telling the project to build and run while you are on an XML file. Doing so will cause the build to fail and create an error which doesn't actually exist, and so shows up on the project but not on any actual file. You can fix this by rebuilding the project from scratch. In Eclipse this is done by going to Project->Clean... – tlayton Jul 01 '10 at 16:14
2

Check out this post.

In Eclipse, choose Window > Show View > Problems then launch your app.

Check out the Error(s) that occur.

e.g. you might have an expired debug certificate

Find the path to the debug keystore by choosing

Window > Preferences > Android > Build 

Delete your debug.keystore file to get going again.

Community
  • 1
  • 1
TheSolarSheriff
  • 104
  • 1
  • 3
0

Look in the left tree of your project and look for the file with the red error icon. In that file on the line of the error there should be another red icon showing an error. If you high light over the icon it should tell you the actual error.

Robby Pond
  • 73,164
  • 16
  • 126
  • 119
  • That is the problem. There are no files with the red icon. Only the project has the red icon. – rlc Jul 01 '10 at 16:07