R.java disappears after project clean

前端 未结 30 2054
傲寒
傲寒 2020-11-30 05:37

After I added some .png files into my Project Workspace drawable folder I refreshed my drawable folders in Eclipse and the newly added files showed up. But when I tried to a

30条回答
  •  盖世英雄少女心
    2020-11-30 06:18

    Here is what the problem was. I added those new png images to the project and android has rules as to what characters are allowed in the names of these images. Once I changed the uppercase letters in the image name, it was back on track again and Build Automatically generated the R.java file and all errors were gone. Eclipse console is the place where I found all the errors related to my resources.

    Thanks Guys....I tried your solutions but my error was something specific which was due to my image naming convention so this is the way I fixed it.

提交回复
热议问题