Tofira
Tofira

Reputation: 1634

Errors in Eclipse for no reason

I'm building an Android app.

I worked today on my app, and suddenly I saw that all the projects in the workspace are marked with an error. I don't know what caused it, and I can't find explanation of the error anywhere.

I'm using Helios with Windows 7. I even tried downloading Eclipse again but it didn't help.

Today I tried to integrate Facebook with my app. Their tutorial required me to try to get a hesh key from a keystore. In the process I added an Environment Variable named JAVA_HOME, and pointed it to the JDK.

I don't know if it's the cause of my problem, but I think it might be related.

I really don't know what to do.

Thanks!

Upvotes: 6

Views: 7038

Answers (5)

swarnava112
swarnava112

Reputation: 431

i solved error or all project showing errors this way.... close eclipse. then Right Click on eclipse shortcut-->open file location-->open command widows there and type "eclipse.exe -clean" eclipse the starts..and in my case errors were gone...hope it helps

Upvotes: 1

Kevin Coppock
Kevin Coppock

Reputation: 134714

Typically, the problem is with a resource you've recently added to your project (drawable, assets, raw, etc.)

Some things to check are:

  • Invalid XML files
  • Invalid 9-patch images (outer 1-pixel border must be full black or transparent)

Typically, just start by removing a resource, then cleaning your project (Project > Clean). If the errors go away, that resource is your problem. If not, continue this process until the error DOES go away. Start with the most recent resources you've added, naturally.

Upvotes: 1

OceanBlue
OceanBlue

Reputation: 9248

Try this. In eclipse, go to Project --> Clean --> Select "clean all projects". This should rebuild all projects.

Upvotes: 9

Andy
Andy

Reputation: 8949

Find the "Problems" view. That will give you more details. Post the description of the problems, we can get more information.

click Window -> Show View -> Problems

Upvotes: 1

Nick Banks
Nick Banks

Reputation: 4408

Try cleaning your android project. I get problems with Eclipse sometime, and if I clean the project, it fixes it.

Upvotes: 1

Related Questions