R file is missing android

后端 未结 14 1826
春和景丽
春和景丽 2020-11-30 14:11

i was using Eclipse Helios but due to performance issues i changed to Eclipse Galileo and installed the ADT plugging, and added my sdk folder to Elcipse Preferences. Now R.j

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 14:45

    This happened to me while adding some new resources to my project. The R file is build after every resource update.

    The error in my case was incorrect file name. One of the image resources had a capital case letter in its name and that prevented the build from creating the R file. Changing the name simply worked.

    I would suggest that when you add too many resources at a time, just make sure of the naming conventions for them. Its easy to miss such things.

    Resource conventions: http://developer.android.com/guide/topics/resources/providing-resources.html

提交回复
热议问题