How to change flutter project name and id

0 votes
Is it possible to change flutter project name and organisation ? I want to change only the project's name and organisation id without recreating the whole project with flutter create <project name> --organisation <organisation-id>
Mar 17 in Flutter by sarit
• 1,190 points
44 views

1 answer to this question.

0 votes

Yes, it is possible to change the project name and organization ID in an existing Flutter project without recreating the entire project. Here are the steps to follow:

  1. Rename the project folder: You can rename the project folder from the file explorer or terminal by using the mv command. For example, if the current project name is "old_project_name", you can rename it to "new_project_name" by executing the following command in the terminal:
mv old_project_name new_project_name
  1. Update the pubspec.yaml file: Open the pubspec.yaml file and update the name and organization fields with the new values. For example:
name: new_project_name description: A new Flutter project version: 1.0.0 # Update the organization field organization: com.new_organization_id
  1. Update the AndroidManifest.xml file: Open the AndroidManifest.xml file located in the android/app/src/main directory and update the package name with the new organization ID. For example:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.new_organization_id.new_project_name">
  1. Update the MainActivity.java file: Open the MainActivity.java file located in the android/app/src/main/java/com/example/new_project_name directory and update the package name with the new organization ID. For example:
package com.new_organization_id.new_project_name;
  1. Update the AppDelegate.swift file: Open the AppDelegate.swift file located in the ios/Runner directory and update the bundle identifier with the new organization ID. For example:
Bundle.main.bundleIdentifier = "com.new_organization_id.new_project_name"

After following these steps, you should be able to run the project with the new name and organization ID.

To know more, join our Flutter App Development Course today.

answered Mar 20 by pooja

Related Questions In Flutter

0 votes
1 answer

How can I change the app display name build with Flutter?

Yes, you can change the app display ...READ MORE

answered Mar 21 in Flutter by venky
46 views
0 votes
1 answer

How to get build and version number of Flutter app?

You can get the build and version ...READ MORE

answered 1 day ago in Flutter by pooja
19 views
0 votes
1 answer

How do you change the value inside of a textfield flutter?

To change the value inside a TextField ...READ MORE

answered 4 days ago in Flutter by Tej
36 views
0 votes
1 answer

How to implement drop down list in flutter?

You're close! The error you're getting is ...READ MORE

answered 4 days ago in Flutter by vishalini
39 views
0 votes
1 answer
0 votes
1 answer

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Hi@akhtar, You need to add the main() function ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,460 points
2,627 views
0 votes
1 answer

How to install Dart in Windows system?

Hi@akhtar, Dart is the programming language used to code Flutter apps. ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,460 points
528 views
0 votes
1 answer

flutter run: No connected devices

Hi@akhtar, To prepare to run and test your ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,460 points
3,276 views
0 votes
1 answer

How to change Android minSdkVersion in Flutter Project?

Yes, you can change the minSdkVersion in ...READ MORE

answered Mar 21 in Flutter by Tej
53 views
0 votes
1 answer

How to Determine Screen Height and Width?

To optimize your Flutter application for different ...READ MORE

answered Mar 21 in Flutter by tan
30 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP