Every time I refactor my package, random sections of my AndroidManifest file gets deleted or overwritten incorrectly.
Is there a way to prevent this from happening, or to disable the automatic editing of my AndroidManifest file when refactoring?
Every time I refactor my package, random sections of my AndroidManifest file gets deleted or overwritten incorrectly.
Is there a way to prevent this from happening, or to disable the automatic editing of my AndroidManifest file when refactoring?
If you want to Refactor your application package name then try -
Right Click on your project -->Android Tools -->Rename Application Package is the best way for refactor your application package name.
Hope this is help full.
Update-
IF you want to update package name then -
Right Click on Package -->Refactor --> Rename -->Enter updated Name for your package.
By above steps you can rename your package without affecting your source code and classes.
@krikara,I think so. I met the problem before and find that url on stackoverflow. Android project is no as same as the common Java project. After using the Android Tools -> Rename Application Package menu, I refactor the java package. It may need some clean on project or src(right click on src dir->soruces->clean up...).