[英]How to remove parts of an android package name with AndroidStudio?
I have an android project with a package name like com.example.alexander.app
and I want to change this to a name containing only three parts, like com.alexapps.firstapp
. 我有一个包含
com.example.alexander.app
等软件包名称的android项目,我想将其更改为只包含三个部分的名称,例如com.alexapps.firstapp
。 However, after searching several sites, I still have no idea how to do that in AndroidStudio (2.1.3). 然而,在搜索了几个网站后,我仍然不知道如何在AndroidStudio(2.1.3)中这样做。
I found the following answer, which do not fully answer my question: 我找到了以下答案,但没有完全回答我的问题:
R.java
which I cannot find R.java
So is there a way to remove a part of a package name with AndroidStudio? 那么有没有办法用AndroidStudio删除包名的一部分?
The easiest thing to do is right click the folder/package, and refactor. 最简单的方法是右键单击文件夹/包,然后重构。 This however i think is limited to the final folder, and does not remove a hierarchy.
但是我认为这仅限于最终文件夹,并且不会删除层次结构。
So the solution in this scenario, is to 因此,在这种情况下的解决方案是
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.