Developing for Android in Eclipse: R.java not regenerating

前端 未结 30 3103
孤城傲影
孤城傲影 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 07:52

    I had the same issue, and I finally found the problem: In the strings.xml, I did not keep the line program-name which is present by default when creating a new Android project. I thought it was only used for the program HelloWord, which is the original program.

    However, the AndroidManifest.xml refers to this value, hence:

    => A compile error;
    => the R.java isn't updated;
    => ID are not recognized...

提交回复
热议问题