How to change name of project in Android Studio

百般思念 提交于 2019-12-04 00:23:56

Try changing the contents of this file: C:\Path\To\Project\.idea\.name

  1. Change the name in manifest file. android:label="@string/app_name"
  2. There's a build.gradle file inside your app folder. Change the package name from there. Make sure you edit the build.gradle file inside your app folder, not the one in the root of your project.

When you want to change only the name of the application to enter src->main->res->values->strings.xml ​​and change the name to the new

You can try something like this in your settings.gradle file:

rootProject.name = "YOUR_PROJECT_NAME"

After restarting of Android Studio it will also change text in title bar to YOUR_PROJECT_NAME.

Tested on Android Studio 2.2 RC2

change rootProject.name in settings.gradle file

settings.gradle

    rootProject.name = 'NewAppName'

Android Studio's Refactor will help you. Just click rename your project with refactoring

Try to change app_name string in strings.xml

<string name="app_name">My Application</string>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!