Monday, January 27, 2014

Android Eclipse - Copying files from one project to a new one

  1. Select a project, copy and paste. Rename the project when prompted. 
  2. Open search and replace dialog for the project manifest, find and replace all strings associated with old name to new name. 
  3. Select the package name in src folder and refactor/rename to new project name. 
  4. Open res/values folder and examine strings.xml. Chances are the app name is stored in there using old project name. Search/replace here as well.
  5. Deleted any imports in class files which refer to old .R file. Look for the entry in the imports section at top of file.

No comments:

Post a Comment