1

I have faced case where R file not generated automatically. However, this time is quite weird.

I have checked under res folder, there is no wrong in naming convention and there is no error under that folder.

I build the project min 9 and targetSDKVersion 21, and build target 21 too and I have updated Eclipse and also Android SDK Tools. What else do I need to check? I can't find the cause of error at all.

Rendy
  • 5,572
  • 15
  • 52
  • 95

3 Answers3

0

I have faced such problems many times.

Try below ways and you may be lucky to fix your issue:

Change the API Level to some other API Level. Then Apply. Again revert back to original API Level. By Right Click on the Project -> Properties -> Android.

or

Clean the Project.

or

Restart Eclipse.

Hope it will get fixed and Enjoy Coding.

Akash Patra
  • 768
  • 1
  • 9
  • 20
0
  1. Check that all your reference library are in the same workspace folder.
  2. Clean and Refresh project at least 3 times :).
  3. If nothing works, recreate the entire workspace...creating new workspace and import your project to this new workspace or delete .metadata folder of your workspace and restart Eclipse, import your projects again.

I hope it helps

Gueorgui Obregon
  • 5,077
  • 3
  • 33
  • 57
0

Well finally I get rid of it after 6 hours. I downloaded new release of Eclipse (Mars), re-clone my project, install ADT on new Eclipse and it works now. Previously I used Luna release 2.

Rendy
  • 5,572
  • 15
  • 52
  • 95