Developing for Android in Eclipse: R.java not regenerating

前端 未结 30 3602
孤城傲影
孤城傲影 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:45

    This site suggests:

    if you run a clean on the project it should regenerate all the generated Java files, namely R.

    ...and...

    In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project.

    This site suggests another solution.

提交回复
热议问题