duk3r
duk3r

Reputation: 1194

How to change name of project in Android Studio

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 the old project.

How do I change the pointed name into something else?

project name

Upvotes: 13

Views: 22496

Answers (7)

Eric Kim
Eric Kim

Reputation: 10952

change rootProject.name in settings.gradle file

settings.gradle

    rootProject.name = 'NewAppName'

Upvotes: 0

Prizoff
Prizoff

Reputation: 4575

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

Upvotes: 1

Phenix40
Phenix40

Reputation: 1

Try to change app_name string in strings.xml

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

Upvotes: -1

Przemek
Przemek

Reputation: 11

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

Upvotes: 1

Adarsh V C
Adarsh V C

Reputation: 2314

  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.

Upvotes: 2

alashow
alashow

Reputation: 2825

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

Upvotes: -1

JstnPwll
JstnPwll

Reputation: 8685

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

Upvotes: 50

Related Questions