How to change package name?

⇒ Load the project in Android Studio.

⇒ Unmark Compact Middle Packages

unmark

 

⇒ Right click on org package and click on rename.

rename_org

 

⇒ Click on Rename all button.

rename_all

 

⇒ Change first word of the package name org

change_org_2

 

⇒ Right click on mintsoft package and click rename.

rename_mintsoft

 

⇒ Click on Rename package button.

rename_package_1

 

⇒ Change middle word of the package name mintsoft.

change_package_2

 

⇒ Right click on last word mintly to rename.

rename_mintly

 

⇒ Refractor the last word mintly.

refractor_mintly

 

⇒ Sometimes Android Studio does not fully change the package name in all the files. So you need to use Replace in files option to change the package name in whole package.

replace_in_files

 

⇒ Find exactly org.mintsoft.mintly and replace with your package name.

replace_package

 

⇒ Then invalidate project cache and restart Android Studio.

invalidate_cache

 

⇒ After the restart, clean your project.

clean_project

 

⇒ Then click on Rebuild Project from Build menu.

Make sure you used your own Firebase config file google-services.json before compiling the apk.


Copyright © 2024 MintSoft LLC