Friday 15 March 2013

Advise on renaming a Android project in Android studio(Gradle based) -



Advise on renaming a Android project in Android studio(Gradle based) -

in nowadays project , wish rename android project in android studio (0.8.9) , wish utilize hereafter. know 2 solutions discussed in forum. 1 please confirm best approach , hassle free. advice tried/tested on android studio 0.8.9 best.

solutions know (but not sure) a.- close project under consideration.copy , rename new name , open android studio. in case - project .iml file still shows old name , .name file under ".idea" folder. error:

unsupported modules detected: compilation not supported next modules: . unfortunately can't have non-gradle java modules , android-gradle modules in 1 project.

b. using f6 alternative ,but not copy. think moves entire project, not solution.

the next works me when renaming project:

close android studio delete *.iml file(s) in project's root directory delete in .idea directory except workspace.xml , tasks.xml. rename project's root directory new project name restart android studio , import project renamed directory.

note: if don't care losing workspace settings (window sizes, etc.) , don't have tasks can delete .idea directory entirely.

android android-studio

No comments:

Post a Comment