Eclipse thinks there are problems with my Android project

I have an Android project, and Eclipse tells me that my project has an error with its build path. In particular, the presentation of the problem shows: "A project cannot be created until errors in the build path are resolved." The whole project builds just fine, that is, there is no red X in any of the files. I can create a project outside of Eclipse, deploy it on the device, and it works just fine, so I know that there are no problems with my source code or layouts. The strange thing is, when I delete the “src” folder from the build path in Eclipse, clear and create the project, and then again add the “src” folder to the build path and create the project that works again. However, over the course of a few changes, this gives me the same problem.

Has anyone else come across this before? Does anyone know of a solution? It drives me crazy!

Thank,

Dan

+3
source share
5 answers

I did not have this problem since I turned on the "Create automatically" checkbox in the "Project" menu. Project reconstruction always works.

Solving the problem by cleaning and then building did not work as suggested by others. This always led to the same problem. Now that the checkbox is on, everything is fine. Not sure why this will have a big impact on Android projects.

+2
source

, Eclipse , , , Xs . . ... , " "!: P

+1

. , , , .

Project- > Clean

+1

. . , -, ...

0

, . Project → Clean

0

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


All Articles