开发者

Problems with R.java in gen folder after creating two packages

I have created two packages in eclipse. The actitivites in both the packages use the some common xml files and few diffrent ones.

But once i build the project the R.开发者_如何学JAVAjava for the second package is not created. there is no second package in the gen folder.

I manually build the project and also kept build automatically but nothing is helping me to generate the r.java file for the second package.

Thanks Sudhanshu Bhatt


There is just one R.java for the entire project. So what you are seeing is correct. You can have n number of packages under src directory and still there will be just one R.java under gen. Mind you, R.java should not be tampered with as it is self-generated.


Only one R class is generated, and it is under the package set under <manifest> in AndroidManifest.xml.


For all package is generated only one R file. it is not important haw many package you create always be one R file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜