How to change package name of an Android Application

后端 未结 18 1282
攒了一身酷
攒了一身酷 2020-11-28 02:07

My keystore is corrupt, therefore the Android Market is requiring me to rename the app and resubmit it. However, whenever I go to edit the package names in Manifest and thro

18条回答
  •  萌比男神i
    2020-11-28 02:35

    1. In your Android studio , at project panel , there is gear icon "Click on it".
    2. Uncheck the Compact Empty Middle Packages
    3. Now the package directory has been broken up i.e individual directories.
    4. Select the directory you want to rename.
    5. Right click on that particular directory.
    6. Select refactor and then rename option.
    7. The dialog box has been open up,rename it.
    8. After putting new name, click on Refactor.
    9. Then click on Do Refactor at bottom.
    10. Then android studio will update all changes.
    11. Now open build.gradle file and update the applicationId & sync it.
    12. Now go to manifest file and rename the package.
    13. Rebuild your Project.
    14. You are done :)

提交回复
热议问题