重命名该R.java在生成的包 [英] Renaming the package that R.java is generated in
问题描述
我使用Eclipse和我创建了一个测试Android项目和包中包含了根文件夹 R.java
目前名为 com.something.test
(我还以为我只是测试,但建立在它在我的整个应用程序!)
I am using eclipse and I created a test android project and the package in the "gen" folder that contains R.java
is currently called com.something.test
(I thought I was just testing but build my whole app on it!)
这是加载应用程序时所引用的电话有时会显示它,所以我需要重新命名它。我想这个通过点击重构,但它与旧名称再次再生了!
This is referenced when loading the app and the phone sometimes displays it so I need to rename it. I tried this by clicking refactor but it regenerated it again with the old name!
我可以改名?
推荐答案
右键单击您的项目,那么Android的工具 - >重命名应用程序名称:
Right click your project, then Android Tools -> Rename Application Name:
或者,如果你想要做手工,去你的清单文件,更改包名称,并进行项目清理。
Or, if you want to do it manually, go to your manifest file, change the package name, and make a Project Clean.
这篇关于重命名该R.java在生成的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!