问题描述
我知道如何重命名的Android工作室的包名。我也每次都和它很容易在Android Studio中做完成。但现在我停留在这是如下的条件
I know How to rename the package name in Android studio. I have done this every time and its easy to do in android studio . but Now I am stuck in a condition which is as below
我的包名
com.example.andygreson.talkmania
在这里,我希望它是
com.andygreson.talkmania
我想从包名称中删除示例目录。但是,当曾经我这样做,它会删除它里面的所有项目。
I want to delete the example directory from the package name. But when Ever I do , it deletes all the project inside it.
请告诉我如何做到这一点。
Please tell me how to do this
推荐答案
在AndroidStudio,
In AndroidStudio ,
把你的 com.example.andygreson.talkmania
包备份
然后
创建要新包 com.andygreson.talkmania
现在所有文件从最后一个数据包复制并粘贴到这一点。
Take backup of your com.example.andygreson.talkmania
packagethenCreate new package you want com.andygreson.talkmania
now copy all files from last package and paste into this one.
不要忘记在修改 AndroidManifest 文件
刷新工作室。它的完成。
Refresh studio. its done.
这篇关于如何从包名称删除上一级目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!