1 - Change Package Name
In this section, we will see how to change the package name.
You can also follow along with this video.
#
Open ProjectExtract the files in the Project.zip
to a new folder. and open this folder in the android studio.
After the Project is fully loaded in the android studio, in the Project panel, change the dropdown option to Project
.
#
Change Project View SettingsClick the setting icon in the Project panel and make sure these options are not checked.
Flatten Packages
Compact Middle Packages
#
Change Package NameNavigate to app/src/main/java/com/wpinandroid/
folder in the Project panel.
Right-click on the folder wpinandroid
and select Refactor->Rename
.
A dialog will open and enter a new name on the dialog and click refactor button.
#
Update Package Name In build.gradleNavigate to app/build.grale
and open build.gradle.
Find this
applicationId: 'com.wpinandroid'
Replace com.wpinandroid
with your app package id
applicationId: 'com.myappid'
then click Sync Now
to let the Project will sync.
#
Update Package Name In shortcuts.xmlNavigate to app/src/main/res/xml/shortcuts.xml
and open shortcuts.xml. Press Ctrl + R to find and replace. Then enter wpinandroid
in find and myappid
in replace and click replace all.