Back to photostream

How to change package name in flutter?

Hello Guys. Many times we need to change the package name of our project in flutter. So in this tutorial, we are going to learn How to change package name in flutter?

 

It is totally different method to change package names in android and iOS as well. So here is two methods for android and iOS. Here is defined all steps please followed meticulously to prevent any potential crash.

 

How to Change Package name in flutter for Android Project

 

Time needed: 2 minutes. How to Change Package name in flutter for Android Project There are 4 steps to change the Package Name of your Flutter app in android. so follow every one step carefully. Change the package name in your main AndroidManifest.xml file Modify the file as the following path:/android/app/src/main/AndroidManifest.xmlReplace "com.example.flutter_app_test" with your new package name Change the package name in your debug AndroidManifest.xml file Do Same Here as We did in step 2./android/app/src/debug/AndroidManifest.xmlReplace "com.example.flutter_app_test" with your new package name Change the package name in your profile AndroidManifest.xml file Do Same Here as We did in step 3 but with different paths./android/app/src/profile/AndroidManifest.xmlReplace "com.example.flutter_app_test" with your new package name Change the applicationId in your build.gradle file Then all we need to do is change applicationId in build.gradle file./android/app/src/build.gradleReplace "com.example.flutter_app_test" fluttercorner.com/how-to-change-package-name-in-flutter/

16 views
0 faves
0 comments
Uploaded on October 29, 2020