R.Java not generated

后端 未结 11 1949
独厮守ぢ
独厮守ぢ 2020-12-19 03:27

I have downloaded code from google codes but when I import that project in my eclipse IDE it does not generate R.Java file.I searched many blogs and forums and tried many th

11条回答
  •  余生分开走
    2020-12-19 04:12

    Whenever your generated R class isn't generated, it indicates that there's a problem with generating it due to some parsing issue from the XML resources. Check the error console in your IDE to figure out what's specifically wrong.

    Common problems are:

    • An unescaped character in your strings.xml, for instance you're instead of you\'re
    • Missing layout_width or layout_height tags in layout resources
    • Missing namespace declarations
    • Variable names that aren't supported by Java, for instance due to capitalization or use of spaces, hyphens or other unsupported characters
    • Any other kind of syntax error in XML
    • Check Console for the Issues (Image is attached where console is defining the issue why R is not generating in your project)

    enter image description here

提交回复
热议问题