Is it possible to change package name on android project in eclipse?

10,889

Solution 1

Inside the package explorer, right click on the package and chose

Refactor > Rename

Type in the new name and you are done.

Solution 2

I would like to complete Mef's answer. In a lot of cases this solution is not enough, cause not all the package name references in the manifest are changed and some other issues may appear. The three step solution is as below:

  1. Right click on the package name then Refract > Rename.
  2. Right click on the project name Android tools > Rename Application Package.
  3. Manually set the package names of the Manifest that have not been changed by the previous steps.

Looks like it does not need any cleaning or resetting of the IDE (I am using Eclipse).

Solution 3

Simply select the package name and press F2. Rename to what you want. Then open the gen folder then rename the package there as well.

And don't forget to change the package name in the AndroidManifest.xml file as well

Share:
10,889
Ted pottel
Author by

Ted pottel

One of those people who started programming when computers had tape recorders. Currently specializing in the mobile devices and starting up a company called learning tree apps ( Learning apps for young children)

Updated on June 11, 2022

Comments

  • Ted pottel
    Ted pottel almost 2 years

    the package name for my project is org.consulting.keno, could I change it somehow to something like org.consulting.keno2?

    The problem is that I submitted an app to the google store as free and want to change it to charge money. The google store said I would have to remove the old one and re-submit a new apx file. But I get a error saying conflicting package name.