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: right click -> "move" and "refactor/rename".
After moving and renaming my project folder and my apk modul there was not the same project-structur as before. My project libs have been included twice.
I looked in the '.iml' files and saw that the previous path was included - so I changed this. After this I could compile my project over the command line but not with the IDE. There I got this error:
NullPointerException: no project directory specified
--- MyProject (new path)
--- MyProject (old path)
Close the project in Android Studio (File -> Close Project). Move the project and rename it by moving its home folder/directory. Open the new project from Android Studio (File -> Open)