Editing the xml files didn’t help, cleaning the project didn’t help and, of course, trying to run the project didn’t help because the project contains errors (because it cannot see R class). This project cannot contain errors in resources because it is a project from other people, and it works on their computers. Also, when I create new android project, it cannot run becauseof the same – no R class.
On OS Windows it sometimes works (after some changes in project files, or re-opening eclipse), but now it is Ubuntu and android sdk for linux.
How to solve this problem?
SOLUTION:
WOW! This problem has a really EPIC solution! So, what to do? When you install android-sdk for linux, you are unpacking .tgz file which contains different tools. BUT! The tools are executable files, but they haven’t executable flag! So, You should do it manually! In the folders tools/ and platform-tools/ it is necessary to do it. In this concrete case: the tool “aapt” generates the R class, so I did:
chmod +x platform-tools/aapt
After that, eclipse COULD generate the R-class.
I hope this message helps someone in the future.