Follow these steps to migrate Eclipse to Android studio: eclipseandroid
1. Export from Eclipse:
1. Upgrade Your ADT plug-in version to 22.0 or above.
2. In Eclipse, select File --> Export.
3. In the pop-up export window, open the Android folder and select "Generate Gradle Build Files ".
4. Select the project you want to import to Android Studio and Finish.
Note: The exported project will be in the same directory as the original project. When overwriting the original project, a file named build. gradle will be added. When importing the file to Android Studio, the file will be read first.
2. Import to Android Studio:
1. In Android Studio, first turn off your current open project.
2. On the welcome page, click Import Project (Note: You can also select Import project directly from the menu ).
3. Select the project you export in Eclipse, expand the directory, click the build. gradle file, and then OK.
4. In the subsequent pop-up dialog box, you will be asked to select the Gradle configuration and select Use gradle wrapper. (Note: You can also customize your local Gradle ).
Note: If you do not have the Grade build file, you can import an ordinary Android project to Android Studio. It will use the existing Ant build. however, we strongly recommend that you generate a Gradle file from the ADT plug-in before importing it to Android Studio to make better use of the subsequent functions and make full use of building variables.