Create Empty Android Studio ProjectAndroid Studio will not migrate a project from the Eclipse layout to the Studio format. You will need to do the migration by hand. Creating an empty project will generate some of the Gradle files you will need. Once you create the project, close Android Studio and rename the project folder.
Create project with Github Checkout
Reopen Android Studio and select the option to Checkout From Source Control. Enter your Github credintials if you have not already. The result will be a project with the Eclipse folder layout that will not build and is not tied to Gradle
Move Your FilesClose Android Studio again and return to the command line. Create folders to match the structure of your empty Android Studio project. The folders you will have to create are
Use Git to move the Java source files to the app/src/main/java directory
git mv src/org app/src/main/java
Next, move the res folder
git mv res app/src/main
Finally, move AndroidManifest.xml
git mv AndroidManifest.xml app/src/main
Copy Files from Empty ProjectCopy these files and directories to the same location in your Github checkout project.
- gradle directory
Migrating to Gradle Build
Open the Github project in Android Studio. The Gradle files will be detected and a popup will ask you if you want to migrate to a Gradle project. Click the link and the project will be updated. If your project will still not build, you may need to add dependencies for libraries such as Appcompat in the app/build.gradle file.