0

I am trying to create 2 different apk's from the same project which will be installed in the same device simultaneously. I am doing this by changing the package name in AndroidManifest file and then renaming the relevant package. In normal case, this works fine.

But I have my project in SVN, I follow these steps,

  1. Change the package name in AndroidManifest.xml file in all the applicable places.
  2. Save, now press YES in the alert box.
  3. Go to Project Explorer in eclipse, try to Refactor the package name. Now I end up with the following error in the photo below.

enter image description here

I am not getting what is this, because for the project which is not in SVN, I don't have any problem. So confused why I'm getting for the one in SVN.

This is the error:

 move /home/keerthiraj/Desktop/ICS/Project/src/com/ai2/ordershark /home/keerthiraj/Desktop/ICS/Project/src/com/hla/oshark svn: '/home/keerthiraj/Desktop/ICS/Project/src/com/hla' is not a working copy svn: '/home/keerthiraj/Desktop/ICS/Project/src/com/hla' is not a working copy 

Can any body please suggest me something.

17
  • Open project into file explorer and check option "show hidden files" and delete the .svn files if there. I think you copied the project which was into the SVN. Commented Sep 13, 2013 at 5:34
  • @PankajKumar, I din't get your 2nd point. I have exported the project from SVN trunk only into my local workspace Commented Sep 13, 2013 at 5:36
  • The project for you are trying to rename package is the copy of the same project which was in SVN. right? Then simply delete the .svn files as I said. Commented Sep 13, 2013 at 5:43
  • @PankajKumar, I am sorry, I am in ubuntu. Can you guide me how to see those files? I tried here Commented Sep 13, 2013 at 5:58
  • I got it, there is a .svn folder in my project. You want me do delete that? Commented Sep 13, 2013 at 6:03

1 Answer 1

1

here are the stepsto change Package name:

-> Right click on your project-> Go to Refactor-> Change package name-> Go to your main package-> Right click on it-> Change package name there-> Go to manifest file-> You can see main package name will be changed.

Sign up to request clarification or add additional context in comments.

10 Comments

Refactor the Project or particular package name?
I did this, Right Click Main Package --> Refactor --> Changed name --> AndroidManifest is not updated.
Sorry I forgot one step. Right click on your project-> Go to Android Tools-> Rename Application Package.
I did this. I renamed Application Package. IT affected in Manifest file. But when I tried to refactor the package name in explorer, again the same error
Ok just for testing purpose, please disconnect your project from svn and then clean your project and try it.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.