I have installed eclipse juno and also added the plugin's of the android sdk. After installing android SDK manager, I've created a new android project, but a problem arises in R.java file. R.java doesn't open. Please give me a solution. I am new to android.
-
1Are you seeing any errors in the problems tab of eclipse? If yes, then please post the details.Rise– Rise2013-06-18 07:04:05 +00:00Commented Jun 18, 2013 at 7:04
-
clean and rebuild ur projrctSam– Sam2013-06-18 07:04:14 +00:00Commented Jun 18, 2013 at 7:04
-
try this stackoverflow.com/questions/17086013/r-file-not-generated/…Sunil Kumar– Sunil Kumar2013-06-18 07:05:00 +00:00Commented Jun 18, 2013 at 7:05
-
yes. it is adt rev 22.Kalai– Kalai2013-06-18 07:18:12 +00:00Commented Jun 18, 2013 at 7:18
3 Answers
Click on Project -> Build Project
Edit
- Remove your
gendirectory andbindirectory - Click on Project -> Clean (wait till cleaning complete)
- Click Project -> Build Project
1 Comment
Make sure you have Android SDK Build-Tools installed from the Android SDK Manager
Click this guy:

Then make sure the top three are all installed:

3 Comments
Ensure the code, resources and AndroidManifest.xml do not have any problem.
First, delete the R.java file. As soon as you delete, that file should be re-generated automatically if you have enabled automatic build (Project->Build Automatically).
If that doesn't work try to clean the project by clicking on Project->Clean.
If it still doesn't work then, confirm you have android sdk build tools installed. For this, open Android SDK Manager and ensure Android SDK Build-tools has the status of Installed.
Also confirm that the ADT is up-to-date. To update ADT, in eclipse go to: Help -> Check for updates. Select the necessary entries like: Android Development Tools and update them.
Hopefully one of these solutions will solve your problems :-).