Reputation: 2050
I get the following error on all R.java classes:
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
I am using eclipse, and I did clean to no avail. Nothing seems to work.
Does anyone know why this happens?
Thanks
Upvotes: 1
Views: 566
Reputation: 147
I had the same issue and I solved it by closing the project (right click on it in eclipse and go to close project), and then reopening it.
Upvotes: 2
Reputation: 2050
Thank you everyone for helping!
I just managed to fix it, by the help of one of our other programmers.
It turns out, that the .classpath file was changed (for some unknown reason) by eclipse, and the folders were not defined as source folders.
I copied his .classpath file (you can also right click on the src folder and set it to source), and it worked.
Thanks again, and I hope this might help someone else...
Upvotes: 0