如何在Eclipse中更改Android Project的软件包名称? [英] How to change package name of Android Project in Eclipse?

查看:132
本文介绍了如何在Eclipse中更改Android Project的软件包名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Eclipse 中创建了一个Android项目。我想修改项目的包名称和应用程序。如何在Eclipse中执行此操作?

解决方案

像往常一样,按 code> ,可以重命名或更改包名称,还可以右键单击,然后选择重命名选项,您可以更改或重命名包名称。



当您按 F2 时,会显示如下对话框:





在此对话框中,不要忘记检查更新引用复选框,因为通过对此复选框进行检查,它将对项目其他组件引用的包的所有引用进行更改。 / p>

I have an Android project created in Eclipse. I want to modify the package name and application of the project. How do I do that in Eclipse?

解决方案

As usual, by pressing F2 on the package name, you can rename or change the package name, and also by right-clicking and then select Rename option, you can change or rename the package name.

When you press F2, it will show you the dialog box as:

In this dialog, don't forget to check the "Update references" checkbox because by making "check" to this check-box, it will make changes to all the references of the package which are referred by other components of project.

这篇关于如何在Eclipse中更改Android Project的软件包名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆