This should be a really simple question :)
I have a project that works fine. Now I wanted to rename it and to change the path of the projectfolder. First it seemd simple
This is what I do to copy/move a project. I am using Android Studio version 2.3.2
Here are some example statements that need to be changed:
<entry file="file://$PROJECT_DIR$/app/src/main/java/com/NEW_SITE_NAME/NEW_SITE_PACKAGE)/MainActivity.java">
<option name="name" value="NEW_ROOT_DIRECTORY_NAME" />
<option name="KEY_STORE_PATH" value="C:\... YOUR KEYSTORE PATH ...\keystore.jks" />
<option name="KEY_ALIAS" value="newrootdirectoryname" />
<option name="name" value="NEW_ROOT_DIRECTORY_NAME" />
There are other statements and many statements are identical. You should be able to get the idea. The key to doing this correctly is using the same naming methodology already in place in the existing workspace.xml file. If you utilize search and replace this is fairly simple process and takes only a few minutes.
Hope this helps someone!
To move the project in your filesystem using Android Studio 1.1.0:
In Android studio 1.5
This will update move and rename the project path.
For Android Studio 3, it seems this should be enough:
I could not deploy to the emulator after moving and renaming a project. Doing the steps above solved it.
For Android 3.3.2+
Be sure to select the folder with the project name
Uninstall the app from your device
Important!!
Turn off Instant Run to avoid the apk install process from looking for existing slices (the cache clean does not do this, apparently). This is from the SO answer here. File > Preferences > Build, Execution,Deployment > Instant Run > Uncheck the enabled box
Top menu bar -- File > Invalidate Caches / Restart (I invalidate only)
That should do the trick
In my case, after moving the project to another folder what worked was: