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

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

问题描述

如何在Android Studio 0.9.9中更改项目的根目录的名称.我在这里阅读了其他解决方案,但对我没有任何帮助.我可以更改/重构程序包名称,但不能更改/重构根目录名称.我在这里找到了另一个解决方案,该方法是更改​​ .idea/.name 文件中的名称,该方法无效.更改名称后,我尝试进行清理,重建等操作,但是没有任何内容反映出Android Studio中的更改.项目名称/根目录名称"没有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天全站免登陆