Reputation: 314
I am trying to rename my android application package in eclipse via Android Tools > Rename Application Package. It is generating error saying
A Fatal error occurred while performing the refactoring
You can see the screen shot below.
I can't rename my package.
Upvotes: 2
Views: 3106
Reputation: 1336
I face similar issue and fixed it by explicitly enabling "update references" in the rename dialog box. This is disabled by default.
Upvotes: 0
Reputation: 314
I have found the reason behind the error.
One of my class was commented completely(package was commented too).
Whenever Eclipse tries to rename Application package it throws fatal error because the file exists in the package without package name in it.
I just added the package name on the top of the class and tried renaming it again, no issue was found and Application package was renamed properly.
Upvotes: 7
Reputation: 2140
Do it Manually 1) go to Manifest.xml file and change pakage name and 2) go to src directory and change package name then clean proj and rebuild thats it.
Upvotes: 0