Friday, June 5, 2015

ANDROID - How to change package name for project (For all files)

Most of the time I face the problem related to change/rename/refracter package name for Android projects.

If you want to change your package name for project then follow following steps.

Note: Don't need to change all package name. change only main package and keep it other same.

1. right click on perticular package - > Refracter - > Rename -> Set new package name (OK)
2. right click on project -> Android Tools -> Rename Application Package -> Set new package name (OK)
3. Open AndroidMenifest.xml file and search old package name and if available then manually replace with new one
4. Use main "Search" option for finding the old package name and replace it with new one.

No comments:

Post a Comment