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

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

问题描述

我在 Eclipse 中创建了一个 Android 项目.我想修改项目的包名和应用程序.我如何在 Eclipse 中做到这一点?

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?

推荐答案

像往常一样,通过在包名上按F2,您可以重命名或更改包名,也可以通过右键单击然后选择Rename选项,您可以更改或重命名包名称.

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.

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

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 项目的包名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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