I just updated to Ubuntu 12.04 LTS, and installed Eclipse (via Ubuntu Software Center). I also installed the Android SDK and the plugin on Eclipse, however, I imported an old project (which was working correctly before) to it, and it don't even has generated R.java file.
In gen/<my-package> directory there is only a file named BuildConfig.java.
I tryied removing all the warnings from my xml files, and Build, Clean, etc, but it doesn't work.
I dont know if I'm missing some lib or what, because this project was being executed corrected on Eclipse before I installed Ubuntu 12.04 LTS.
I tried creating a new project and check if it creates the R.java file, however, it wasn't created. Maybe the problem is with the eclipse.
UPDATE
The same problem is happening to IntelliJ.
Please help me with this issue. Thanks.
If it's not working and you think you tried everything, first blow out your eclipse installation(un-install and re-install).
If removing and re-installing plug-ins doesn't work, rename your ~/.eclipse folder and start again.
If that doesn't work, delete the .metadata folder in workspace...and start again.
(you're going to have to re-import all your projects)
Install Eclipse from repository(I'm using eclipse from software center and the openJDK).
If you're running x64: sudo apt-get install ia32-libs-multiarch
As root launch eclipse to get the latest platform/PDT updates(they're in /usr somewhere, so you need to be root).
Close eclipse(optionally delete the /root/.eclipse folder).
Launch eclipse as non-root.
Install plug-ins. They'll be in your ~/.eclipse directory.
If it's already installed
Remove all the components in Window->Android Manager
Update the plug-in through:
Help->Install Software->Already installed -> Show updates -> Install
Re-install all the components.
If it's not already installed
Install the ADT plugin through the Help install software menu. With this link.
Choose to install the SDKs during the ADT install.
If any part of installing gives you errors, un-install and install that part.
Install all the updates.
If any part of updating gives you errors, un-install and install that part.
This achieves the results below.


Versions:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With