page.title=Migrating from Eclipse @jd:body

If you've previously developed for Android using Eclipse and would like to migrate to Android Studio, you should export your projects from Eclipse in order to generate Gradle build files. You can then import your project into Android Studio.

Export from Eclipse

  1. Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
  2. In Eclipse, select File > Export.
  3. In the window that appears, open Android and select Generate Gradle build files.
  4. Select the projects you want to export for Android Studio and click Finish.

Your selected projects remain in the same location but now contain a {@code .gradle} build file and are ready for Android Studio.

Import into Android Studio

  1. In Android Studio, select File > Import Project.
  2. Locate a project you exported from Eclipse, select the project's root directory and click OK.
  3. Select Create project from existing sources and click Next.
  4. Follow the walk-through to complete the import process.

Now that your projects are imported to Android Studio, read Tips and Tricks for some help getting started.

Note: It's possible to import an existing Android project to Android Studio even if you don't generate a Gradle build file from Eclipse—Android Studio will successfully build and run projects using an existing Ant build file. However, in order to take advantage of build variants and other advanced features in the future, we strongly suggest that you generate a Gradle build file using the ADT plugin or write your own Gradle build file for use with Android Studio. For more information about the Gradle build system, see the Gradle Plugin User Guide.