R.java is not generated after updating ADT

I am updating my Android tools as well as my ADT. I cleaned up my project and built it again. However, after this action, the my / gen folder is empty.

I made sure that none of my resources contain errors, and also make sure that there is no import.R in my activity. I tried to clean and rebuild other projects with the same error. I created a new project for Android and even the new project also had an empty / gen folder.

Solved: After the update, you need to restart the SDK manager and download the Android build tools. After I clean my projects, everything will be fine. Thanks guys.

+1
source share
4 answers

I had the same issue yesterday. Here is what I did:

Update Android development tools to version v.22

How?

Tab Help β†’ Install a new SW using this site: https://dl-ssl.google.com/android/eclipse

+1
source

Are you referring to the correct location of the Android SDK, and do you have the required platform / api level that you are referring to in your project?

0
source

You tried to move the project folders to another location, for example. to your documents or another drive?

Errors in the build path can be eliminated by clicking "Android Tools" β†’ "Fix project properties"

EDIT:

1) Make sure you have no other errors besides R. related errors. Right-click your project folder in Eclipse, Android Tools β†’ Fix Project Properties. do it

2) Make sure you import the correct R. Sometimes you can import the default Android.R.

3) Check for errors in the layout XML files.

0
source

check in your sdk manager if the Android platform tools are installed, check if the api you are aiming for is installed, as well as in eclipse. File property creators check to see if everything is ever selected. if all this is in order, then if you have not updated your system after the update, then restart it.

0
source

All Articles