0

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.

4
  • 1
    Are you seeing any errors in the problems tab of eclipse? If yes, then please post the details. Commented Jun 18, 2013 at 7:04
  • clean and rebuild ur projrct Commented Jun 18, 2013 at 7:04
  • try this stackoverflow.com/questions/17086013/r-file-not-generated/… Commented Jun 18, 2013 at 7:05
  • yes. it is adt rev 22. Commented Jun 18, 2013 at 7:18

3 Answers 3

1

Click on Project -> Build Project

Edit

  1. Remove your gen directory and bin directory
  2. Click on Project -> Clean (wait till cleaning complete)
  3. Click Project -> Build Project
Sign up to request clarification or add additional context in comments.

1 Comment

i tried. but i have still error in lines corresponding R.java file and R.java not generated
0

Make sure you have Android SDK Build-Tools installed from the Android SDK Manager

Click this guy:

enter image description here

Then make sure the top three are all installed:

enter image description here

3 Comments

how to open Android SDK Build-Tools?
Open Android SDK Manager to check the status of Android SDK Build-tools.
Thank you. i made a problem on installing Android SDK Build-Tools. Now the problems are solved.
0

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 :-).

1 Comment

Thank you. i made a problem on installing Android SDK Build-Tools. Now the problems are solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.