Eclipse IDE reported “The project cannot be built until the build path errors are resolved” error for all except 3 of my existing projects. I had the slightest recollection of how i ended up having this problem. Probably it happened when I invoked Project -> Build All after I typed out an android 2.0 example program.
I googled for a solution. One site mention adding a arbitrary library, wait for the IDE to refresh and then remove this library. That didnt work for me. Another site mention deleting the gen folder through windows installer, go back to IDE and refresh (F5) the project and then do a clean build (Project -> Clean). That didnt work either. I got “missing required source folder gen” instead.
However i just tried an similar steps to 2nd solution. Instead of deleting gen folder through explorer, I deleted it from within the IDE. It worked!! Take a look at this
Before:
Notepadv3 project is having this issue. So first step, delete “gen” folder and secondly Project -> Clean. (Remember to only build selected project.)
And this is the outcome:
No more red X icon on the project. The gen folder is automatically created.
Okay, thats all folks. Till later…