Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to rename a project in android

Tags:

I have downloaded an Android project. To avoid name conflicts I want to move it from com.android.zzz to com.my.zzz. At the moment I'm using Ecplise with the standard android toolkit. Is there a better way to do the rename than to go manually through the files?

like image 340
Christian Avatar asked Oct 02 '10 13:10

Christian


People also ask

Can we Rename a project in Android Studio?

I suggest that you copy everything in another folder (AndroidApp). In that copy, rename AndroidApp\MyApplication to AndroidApp\AndroidApp. Change the setting. gradle to "include ':AndroidApp'" and finally import all this new folder in a new Android Studio project.


1 Answers

This is basic IDE refactoring.

Right click the package in Eclipse -> Refactor -> Rename.

You will probably want to check all the options that come up in the Rename dialog.

Another option would be to right click the class files in Eclipse -> Refactor -> Move.

like image 101
Mark B Avatar answered Sep 27 '22 19:09

Mark B