Developing for Android in Eclipse: R.java not regenerating

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

    All of these answers could not work if you use Maven. The solution for me was to add

    ${project.basedir}/gen
    

    to the configuration section of android-maven-plugin.

提交回复
热议问题