How to change name of project in Android Studio

前端 未结 7 2089
暗喜
暗喜 2021-02-19 15:22

Imported an eclipse project into Android Studio and saved it in a new folder. Changed the package name and everything to new names but the Project\'s name is still the one from

相关标签:
7条回答
  • 2021-02-19 15:29
    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.
    0 讨论(0)
  • 2021-02-19 15:29

    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

    0 讨论(0)
  • 2021-02-19 15:29

    change rootProject.name in settings.gradle file

    settings.gradle
    
        rootProject.name = 'NewAppName'
    
    0 讨论(0)
  • 2021-02-19 15:29

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

    0 讨论(0)
  • 2021-02-19 15:30

    Try to change app_name string in strings.xml

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

    0 讨论(0)
  • 2021-02-19 15:31

    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

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