Android Studio 更改项目名称/根目录名称 [英] Android Studio Change Project Name / Root Directory Name

查看:69
本文介绍了Android Studio 更改项目名称/根目录名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Android Studio 0.9.9 中更改项目根目录的名称.我在这里阅读了另一个解决方案,但对我来说没有任何作用.我可以更改/重构包名称,但不能更改根目录的名称.我在这里找到了另一个解决方案,即更改 .idea/.name 文件中的名称,但不起作用.更改名称后,我尝试清理、重建等,但没有反映 Android Studio 中的更改.PROJECT NAME/ROOT DIRECTORY NAME"没有REFACTOR选项,这里很多人把模块名和项目名/根目录名混淆了.

How to change the name of a project's root directory in Android Studio 0.9.9. I read the other solution here but nothing works for me. I can change/refactor the package name but not the name of the root directory. I found another solution here, which is to change the name in .idea/.name file, which didn't work. After I changed name, I tried cleaning, rebuilding etc. but nothing reflected the changes in Android Studio. There is no REFACTOR option for "PROJECT NAME / ROOT DIRECTORY NAME", many people here confused the module name with project name / root directory name.

推荐答案

基本上你可以通过更改项目的文件夹名称并重新打开它.

Basically you can by changing the project's folder name and reopening it.

还建议通过编辑这些文件来更改 Android Studio 项目结构中的项目名称:

It is also recommended to change the name of the project in the Android Studio project structure by editing these files:

  • 更改.idea/.name中的项目名称
  • 重命名项目根目录下的[Name].iml文件
  • .idea\modules.xml
  • 中更改对这个iml文件的引用
  • 更改项目根目录settings.gradle
  • 中的rootProject.name

这篇关于Android Studio 更改项目名称/根目录名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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