Is it possible to refactor a package without mangling the AndroidManifest XML?

Every time I refactor my package, random sections of my AndroidManifest are deleted or overwritten incorrectly.

Is there a way to prevent this or disable the automatic editing of my AndroidManifest file when refactoring?

+3


source to share


2 answers


If you want Refactor your application name try -

Right click on your project -> Android Tools -> Rename App Package is the best way to refactor your app package name.

Hope this is complete help.

Update -



IF you want to update the package name, then -

Right click on package -> Refactor -> Rename -> Enter an updated name for your package.

In the above steps, you can rename your package without affecting the source code and classes.

+1


source


@krikara, I think so. I met the problem before and found this url on stackoverflow. Android project is not the same as regular Java project. After using Android Tools -> Rename Application Package menu, I refactor the java package. Project or src cleanup may be required (right click on src dir-> soruces-> clean up ...).



+1


source







All Articles