Eclipse does not generate R.java even without errors

I just upgraded to Ubuntu 12.04 LTS and installed Eclipse (via Ubuntu Software Center). I also installed the Android SDK and plugin on Eclipse, however I imported an old project (which worked correctly before it) and it did not even generate the R.java file.

There gen/<my-package>is only a file with a name in the directory BuildConfig.java.

I tried to remove all warnings from my xml files, as well as Build, Clean, etc., but this will not work.

I do not know if I am missing any library or what, because this project was running fixed on Eclipse, before I installed Ubuntu 12.04 LTS.

I tried to create a new project and check if it creates an R.java file, however it was not created. Perhaps the problem is related to the eclipse.


UPDATE

The same thing happens with IntelliJ.


Please help me with this problem. Thank.

+3
source share
3 answers

If it does not work, and you think you have tried everything, first try installing eclipse (uninstall and reinstall).
If uninstalling and reinstalling the plugins does not work, rename the folder ~/.eclipseand run it again.
If this does not work, delete the .metadata folder in the workspace ... and run it again.
(you will have to re-import all your projects)

Install Eclipse from the repository (I use eclipse from the software center and openJDK).
If you are using x64:sudo apt-get install ia32-libs-multiarch

root eclipse, /PDT ( - /usr, root).
eclipse ( /root/.eclipse).

eclipse -root.
. ~/.eclipse.


Window- > Android Manager
:
- > - > โ†’ โ†’
.


ADT . .
SDK ADT.
- , .

.
- , .

. DDMS
yes it works
:
version numbers

+2

, . 64- Linux Ubuntu

, 2 64- .

android-sdk-linux , 2.

+1

, , - .... , , , , , R . .

0

All Articles