Often, the package name is changed to create an R file error, and sometimes there are multiple text clutter in the manifest file with an unknown reason.
So, the most concise and convenient changes to the package name process record, such as the following:
If we now have the package named Com.pepper.util, we will change the package name to Com.pp.util
1. Click on the project right-click-->android tools-->rename Application Package: Change the Pack name--click ok--> click Finish:launch Configuration update--> Click Yes
2. If your package is named: Com.pepper.util, do not change the package name of the main package first. You set up a few sub-packages under this package, such as: Com.pepper.util.print, now we first change the package name of the child package is: Com.pp.util.print.
Right-click the-->refactor-->rename of the child package and the following dialog box pops up:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc2luz2xlcgvwcgvy/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
After setting, click Preview--> Click OK.
3, the child package is changed well, open the manifest file, the manifest in the original package name Com.pepper.util, all changes to Com.pp.util. Save after changing.
4. Change the package name of the main package according to the 2nd step method. The middle will be a step more than the 2nd step, click Continue on it.
5, now the package name has been changed, but the program may still have some can not make their own initiative to change the place package names may or com.pepper.util, so we want to search the entire project. See if there is a place where the original package name exists. Now click the entire project. Then press the shortcut key ctrl+h. The following screen will pop up:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvc2luz2xlcgvwcgvy/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Select the label above: File Search, in containing text: Enter your original package name or the original package name and now the package name is different from the part. We'll search for pepper now and then click Search. In the following section of eclipse there will be a window display with the search tag, and the content is the result. Assuming that the original package name still exists in the project, it will be shown here, click on the detailed display, and then change it to the current package name.
Save after changing.
6. Now the package name of the whole project has been changed.
Change of package name in Android project