Change Project Name on Android Studio

change project name and package name

You change it in the manifest file. That is where you can change a whole bunch of settings about the android project itself.

How to change name of project in Android Studio

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

Changing the project name

That depends on what you are trying to achieve. If you want to change the name of the app which is displayed in the mobile phones menu together with the app icon, you have to change the android:label in the android/app/src/main/AndroidManifest.xml (Code Sample 1) and the CFBundleName in the ios/Runner/Info.plist (Code Sample 2).

Last time I did this it took me ages to find out, why the name of the app was not changed in the list of currently running apps on Android. For that you also need to change the title of your MaterialApp (Code Sample 3).

For renaming it everywhere I would suggest to use search and replace in the project. If you do this, you have to choose a name without spaces or special characters. A project name 'new project' in the pubspec.yaml for example will break the build.

Code Sample 1:

<application
android:name="io.flutter.app.FlutterApplication"
android:label="New Name"
android:icon="@mipmap/ic_launcher">

Code Sample 2:

<key>CFBundleName</key>
<string>New Name</string>

Code Sample 3:

return new MaterialApp(
title: 'New Name'
...);


Related Topics



Leave a reply



Submit