How To Migrate A Project To Another Machine
I want to migrate an Android project developed in Android Studio from one machine to another machine so I can continue working. I tried to copy the project directory to the target
Solution 1:
So how this can be done?
Copy the project directory.
I usually clean out the bits that wouldn't go into version control (e.g., build/
, *.iml
, .gradle/
, .idea/
) before importing the copied directory into Android Studio.
Solution 2:
Usually this problem occurs, only when you try to load the project for first time. Instead of an android project, it considers to be just a directory.
However, I found a way around, which can fix this issue.
Copy the project directory to target Machine.
From Android Studio, go to File->Open; Browse the project directory.
Expand the project directory and open build.gradle. It will complete the required set up automatically and load the project.
- Next time, when you will open the project, it will consider it an Android Project.
Post a Comment for "How To Migrate A Project To Another Machine"