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

查看:799
本文介绍了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 didnt 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
  • Change the project name in .idea/.name
  • Rename the [Name].iml file in the project root directory
  • Change the reference to this iml file in .idea\modules.xml
  • Change the rootProject.name in the project root settings.gradle

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

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