Errors in Eclipse for no reason

I am creating an Android application.

Today I was working on my application, and suddenly I saw that all the projects in the workspace were marked with an error. I do not know what caused this, and I cannot find an explanation of the error anywhere.

I use Helios with Windows 7. I even tried downloading Eclipse again, but that didn't help.

Today I tried to integrate Facebook with my application. Their tutorial demanded that I try to get the hash key from the keystore. In this process, I added the JAVA_HOME environment variable and pointed it to the JDK.

I do not know if this is the cause of my problem, but I think it could be related.

I really don't know what to do.

Thanks!

+6
source share
5 answers

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

+7
source

Try cleaning your Android project. Sometimes I get problems with Eclipse, and if I clean up the project, it fixes it.

+1
source

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

Click Window → Show View → Problems

+1
source

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

Some things to check:

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

As a rule, just start deleting the resource, and then clean your project (Project> Clean). If the errors go away, this resource will be your problem. If not, continue this process until the error disappears. Start with the very latest resources you've added, naturally.

+1
source

I solved the error or the whole project showed errors this way .... close eclipse. then right click on the eclipse shortcut -> open the file location -> open the widow's command and enter "eclipse.exe -clean" eclipse start..and in my case the errors disappeared ... hope this helps

0
source

Source: https://habr.com/ru/post/886740/


All Articles