如何重命名的Andr​​oid包叫什么名字? [英] How do I rename the android package name?

查看:139
本文介绍了如何重命名的Andr​​oid包叫什么名字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pressing Shift + F6似乎只重命名最后一个目录。例如,在项目com.example.test它将提供仅重命名测试。这同样适用,如果我浏览到的.java或清单文件和preSS Shift + F6包的名字。

Pressing Shift+F6 seems to rename the last directory only. For example, in the project com.example.test it will offer to rename test only. The same applies if I navigate to package name in .java or Manifest file and press Shift+F6.

推荐答案

你可以这样做:

  1. 在清单文件手动更改包名称。
  2. 点击你的 R.java 类和preSS <大骨节病> F6 (Refactor->移动...)。它可以让你移动类到其它的包,并以该类的所有引用将被更新。
  1. Change the package name manually in the manifest file.
  2. Click on your R.java class and the press F6 (Refactor->Move...). It will allow you to move the class to other package, and all references to that class will be updated.

这篇关于如何重命名的Andr​​oid包叫什么名字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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