Android studio 从包名中删除中间部分 [英] Android studio remove middle part from package name
问题描述
我想从包名中删除中间部分.例如:com.example.app 到 com.app
I want to remove the middle part from the package name. Ex: com.example.app to com.app
我尝试了几件事,但无法毫无错误地删除包名称的中间部分.
I have tried few things but not able to remove the middle part of the package name without errors.
推荐答案
我认为你唯一能做到的就是:
I think that the only you can achieve that is this:
按Ctrl+Shift+R,设置
Text to find
为com.example.app
,Replace with
到com.app
并点击Find
,All Files
.
Press Ctrl+Shift+R, set
Text to find
tocom.example.app
,Replace with
tocom.app
and hitFind
,All Files
.
之后在文件管理器中打开目录com
,将app
向上移动,变成com/app
删除 example
目录.
After that open the directory com
in file manager, move app
up in hierarchy, so it becomes com/app
and remove example
directory.
这篇关于Android studio 从包名中删除中间部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!