I have an Android project and Eclipse is telling me my project has an error with its build path. Specifically, the problem view shows “The project cannot be built until build path errors are resolved”. The entire project builds just fine, meaning there are no red X’s on any of the files. I can build the project outside of Eclipse, deploy it to the device, and it runs just fine, so I know there isn’t a problem with my source code or layouts. The strange thing is when I remove the ‘src’ folder from the build path in Eclipse, clean and build the project, then re-add the ‘src’ folder to the build path and build the project it works again. However, within a few changes it gives me the same problem.
Has anyone else encountered this before? Does anyone know of a solution? It’s driving me mad!
Thanks,
-Dan
I haven’t had this problem since I turned on the “Build Automatically” check box under the Project menu. Rebuilding the project always works now.
Fixing the problem by cleaning then building did not work as other suggested. It always resulted in the same problem. Now that the check box is on though, everything is fine. Not sure why it would make that much of a difference for Android projects.