Developing for Android in Eclipse: R.java not regenerating

前端 未结 30 3092
孤城傲影
孤城傲影 2020-11-21 07:04

I\'ve found out that my R.java is never updated, so it doesn\'t contain information about my new resources, so I decided to delete it and thought that Eclipse would generate

30条回答
  •  爱一瞬间的悲伤
    2020-11-21 08:06

    I found a solution why R.class is not made by Eclipse after making it again - 2 clean, build, etc.

    The problem is here in strings.xml:

    Hello World, HelloAutoComplete!
    
    HelloAutoComplete
    

    These are by default created by Eclipse when you create projects.

    Definitely you are changing the strings.xml for your own requirement. Sometimes you clear the string.xmls these two lines from your code:

    It is making a problem in the AndroidManifest.xml file:

    
    
    

    So it can't communicate with strings.xml.

提交回复
热议问题