0

I duplicate my project on eclipse and renamed it but, when I run the new project the first one is replaced by the old one and vice-versa.

The Projects have differents names.

Tks Adriano Silvestre

3 Answers3

0

Renamed? You mean you changed the package in the manifest?

user1337
  • 92
  • 2
  • 7
0

Have you changed package names? (package property in your AndroidManifest.xml and package names in source code as well)

ssantos
  • 16,001
  • 7
  • 50
  • 70
  • Hum... Is this line that I need change: ?? tks – user2773297 Sep 12 '13 at 16:15
  • That's correct. Just make sure that `package` attribute is different for both copies of the project. As far as I know, changing `package` name will force you to refactor the packages in source code as well. – ssantos Sep 12 '13 at 16:19
  • Tks guy!! It´s Working now! – user2773297 Sep 12 '13 at 16:30
  • Glad it worked :) By the way, welcome to Stackoverflow. If any answer was useful, please, consider upvoting/mark right answer, as it may be useful for other users too :) – ssantos Sep 12 '13 at 16:32
0

For creating a copy of project you must use different PackageName only changing project name is not sufficient

Do the following

  1. you just copy your project into new one (ctrl+c & ctrl+v).
  2. you change package-name in your manifest
  3. After that you must rename your main package with refactor. Don't forget to select.
  4. Just change your application name in manifest
  5. application android:icon="@drawable/icon" android:label="new name"

Hope I didn't forget something and it helps you

Android Copy Existing Project With A New Name

Community
  • 1
  • 1
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95