Developing for Android in Eclipse: R.java not regenerating

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

    After reading through many posts and YouTube videos, I found that each of us have R.java missing for different reasons.

    Here's how I fixed this in Eclipse:

    • Create R.java in gen folder manually and save.
    • After that go to Project and click "Clean"

    The following message will display and your file will automatically be rewritten:

    R.java was modified manually! Reverting to generated version!

提交回复
热议问题