I import the project, I want to start it, but it was not there. Those classes that refer to the R.java file, swear that it is not "The import ... can not be resolved"

Look, there is no R.java in the gen folder at all. What to do? I have already refreshed and cleaned - nothing happens ...

  • 1. right click on the project. Android tools -> Fix Project Properties. 2. menu Project -> Clean. - Yura Ivanov

2 answers 2

Personally, my P file is often not generated when I have some kind of error in xml files, whether it is layouts or value files, or an Android manifest — I advise you to check everything ... it also helped me to close the project and re-open it ...

  • And what does "closing the project and its opening" mean? Is this a restart of the Eclipse? - Stas0n
  • no, it means right click on the project root -> Close Project, and the same thing -> Open Project - Vladyslav Matviienko
  • @metalurgus, even did not help ( - Stas0n
  • and xml checked everything? I mean the text of the xml files, but not through the visual editor ... the fact is that when performing the operations "Ctrl + c", "Ctrl + v", at least my code is often inserted the wrong way, where I wanted ... - Vladyslav Matviienko
  • Yes, I looked, everything seems to be in order ... - Stas0n

I did a funny thing - I just added the R.java file to the gen folder and updated it from the archive - I removed the problem like a hand ...

No cleanings, updates, rebuilding of the project helped to cope with the illness ...