How To Rename/Change Package Name In Android Studio
Steps by Step
Step 1: First make sure you are viewing the project in Android view. For that follow the below image to change from project to Android view in Android Studio:
Step 2: Now click on setting gear icon and deselect Compact Empty Middle Package
Step 3: Now you will see each package folder is broken into parts]\
Step 4: Now right click on the first package folder, refactor and rename. Now a warning will be displayed but you go ahead and click Rename Package. After that enter your domain name for the package name.
Step 5: Now in the bottom of Android Studio it will display ‘Find Refactoring Preview’. Here click on ‘Do Refactor’
Step 6: Now it has change the package domain name of the App. Now go ahead, change the domain extension and App folder name according to your requirement:
Step 6: Now it has change the package domain name of the App. Now go ahead, change the domain extension and App folder name according to your requirement:
No comments:
Post a Comment