Search code examples
androidfacebookeclipser.java-file

R.java file not getting generated


I'm unable to the R.java problem in my half built Facebook app. I have selected the "Build automatically" option, I cleaned my project. I did all the recommended solutions to generate my R.java file.But still no success. I have 2 R.java in my "gen" folder. I have put a screenshot for better understanding.

enter image description here

all the buttons, textview and imageviews are not being recognized.


Solution

  • Try this: I have similar problem R.java not found error it is actually not getting generated

    I did almost every thing which are said in the different links in the forum

    What I did

    1.I delete the project from the workspace and re import it,after doing that when the project launched it start giving me the SDK not found error even I was given the correct Android SDK path.I am using eclispe ADT which you can find from android site itself.

    2.I don't know why ADT plugin was showing it needs to update even the latest ADT 21.1 is installed .I tried to updated that then ,i don't know how tools folder from my SDK get deleted after that .It start shouting tools folder not found in SDK folder .So I need to download the SDK again and update the ADT plugin to 21.1 .

    3 So I think some time there is problem in ADT plugin ,So keep it update correctly or reinstall it will works if nothing else works .