简体   繁体   中英

Android R.java errors

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

我遇到了同样的问题,我通过关闭项目(在eclipse中右键单击它并关闭项目),然后重新打开解决了问题。

尝试清理您的项目并重建它,只需尝试一下!

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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM