Android Studio Project Root Directory Name Change/ Project name change

后端 未结 10 1363
自闭症患者
自闭症患者 2020-12-13 04:10

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/refacto

相关标签:
10条回答
  • 2020-12-13 04:22

    My solution is:

    • close android studio
    • delete folders .gradel and .idea
    • then re open the project
    0 讨论(0)
  • 2020-12-13 04:28

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

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

    • 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
    0 讨论(0)
  • 2020-12-13 04:29

    To change the name of the project's root directory, the following worked for me: As the image bellow indicates, under the 'Project' tab,

    1. go to setting.gradle

    2. modify/include rootProject.name='put the name you want here'

    3. Then go to build -> clean project

    4. build -> rebuild project

    0 讨论(0)
  • 2020-12-13 04:30

    This needs to be done manually. Can't understand why refactoring is not working.. Rename folder and then respective files

    0 讨论(0)
  • 2020-12-13 04:36

    My sure shot answer is : To refactor the root name

    a) Rename the folder

    b) then please go in settings.gradle > just write rootProject.name = 'new name'

    0 讨论(0)
  • 2020-12-13 04:39
    1. File->Close project

    2. Change project root directory name

    3. Delete .iml files (by searching for them using windows search then deleting them)

    4. Delete .idea directory

    5. Open the project

    0 讨论(0)
提交回复
热议问题