简体   繁体   English

Android R.java错误

[英]Android R.java errors

I get the following error on all R.java classes: 我在所有R.java类上收到以下错误:

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. 事实证明,.classpath文件已被eclipse更改(由于某些未知原因),并且该文件夹未定义为源文件夹。

I copied his .classpath file (you can also right click on the src folder and set it to source), and it worked. 我复制了他的.classpath文件(您也可以右键单击src文件夹并将其设置为source),然后它起作用了。

Thanks again, and I hope this might help someone else... 再次感谢,希望这对其他人有帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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