简单的方法来重命名的Andr​​oid项目 [英] Easy way to rename a project in android

查看:140
本文介绍了简单的方法来重命名的Andr​​oid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了Android项目。为了避免名称冲突,我想从移动 com.android.zzz到com.my.zzz。 目前我使用Ecplise与标准Android工具包。有没有更好的方式来做到重命名,而不是通过文件手动去?

I have downloaded an Android project. To avoid name conflicts I want to move it from com.android.zzz to com.my.zzz. At the moment I'm using Ecplise with the standard android toolkit. Is there a better way to do the rename than to go manually through the files?

推荐答案

这是基本的IDE重构。

This is basic IDE refactoring.

右键单击包在Eclipse - >重构 - >重命名

Right click the package in Eclipse -> Refactor -> Rename.

您可能要检查所有的都在重命名对话框中的选项。

You will probably want to check all the options that come up in the Rename dialog.

另一种办法是右键点击在Eclipse中的类文件 - >重构 - >移动

Another option would be to right click the class files in Eclipse -> Refactor -> Move.

这篇关于简单的方法来重命名的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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