-
Notifications
You must be signed in to change notification settings - Fork 8
6. Change Package Name
Niklas Schnettler edited this page Feb 9, 2016
·
1 revision
-
1. Change Package Name in the project structure:
- Look at the project panel in android studio (the one on the left).
- In the top right corner you will see a little gear icon.
- Click on it.
- in the dialog which opens click on Compact Empty Middle Packages.
- Select the schnettler folder (in JAVA/com/ and rightclick it.
- Choose refactor and then rename.
- A warning window will pop up. Just click on Rename package.
- Enter the desired first part of your package name and click refactor.
- At the bottom of the screen a refactoring preview will appear. Just click on DO REFACTOR at the left corner.
- Do the same with the exampleUi folder, name it like your desired second part of the packagename
-
2. Change package Name in the build.gradle file
- Open the build.gradle file
- Change the applicationId according to your package name (line 8.)