13

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

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
duk3r
  • 1,174
  • 2
  • 12
  • 16
  • Keep in mind that an Eclipse project is an Android Studio module. By right clicking into the module name, and going to Refactor > Rename, you could do the rename – jmm Nov 14 '14 at 15:21
  • I had already renamed the module from AS but the old project name remains on top of AS window! – duk3r Nov 14 '14 at 15:27
  • clean, build, reopen? reimport? – Lukos Nov 14 '14 at 15:31
  • Unfortunately, nothing worked. – duk3r Nov 14 '14 at 15:52
  • Possible duplicate of [Change project name on Android Studio](http://stackoverflow.com/questions/18276872/change-project-name-on-android-studio) – Prizoff Sep 09 '16 at 05:50

7 Answers7

50

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

JstnPwll
  • 8,585
  • 2
  • 33
  • 56
2
  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.
Adarsh V C
  • 2,314
  • 1
  • 20
  • 37
1

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

Przemek
  • 11
  • 1
1

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

Prizoff
  • 4,486
  • 4
  • 41
  • 69
0

change rootProject.name in settings.gradle file

settings.gradle

    rootProject.name = 'NewAppName'
Eric Kim
  • 10,617
  • 4
  • 29
  • 31
-1

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

alashow
  • 2,735
  • 3
  • 21
  • 47
-1

Try to change app_name string in strings.xml

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

Phenix40
  • 1
  • 1