AJAX HTML Javascript jQuery PHP Example MORE

How to change package name in Cordova


To change package the package name in cordova we need to changes in two file:

  1. config.xml
  2. AndroidManifest.xml

Please follow the below step to change:

Step 1:

Open the config.xml file and update the new package name in id attribute of the below line:

Step 2:

Open the command prompt

Then remove the android platform command: cordova platform remove android

And then re-add the android platform with command: cordova platform add android.

This will generate the .java file again with the correct name.

Thank You