I am trying my hands on android development using android studio. I have created a project using android studio. Now, I want to track it using git. I have added it into git and everything works fine with my local machine.
But, when I clone it from another machine in different location, opening project in android studio displays very different project structure or prompts some error.
Generally,
Module has been removed from gradle structure. Do you want it to remove from project also?
After digging into bit, I realized that android studio (which is build on intelliJ) stores some hard-coded paths into some project configuration files. (Especially, .iml files). But, changing it to new path is also not working.
Can anybody suggest me proper way to include android studio project into git? Like, what configuration should I do? Which files should I ignore? After cloning it into other machine or path, what changes I should do? etc...