Migrating from eclipsesee also
- Eclipse compatibility mode
- FAQ on migrating
If you 've previusly developed for Android using eclipse and wowould like to migrate to Android studio, you shoshould export your projects from eclipse in order to generate gradle build files. you can then import your project into Android studio.
Export from eclipse
- Update your eclipse ADT plugin (you must have version 22.0 or higher ).
- In eclipse, selectFile> Export.
- In the window that appears, openAndroidAnd select
Generate gradle build files.
- Select the project you want to export for Android studio and clickFinish.
Your selected project remains in the same location but now containsBuild. gradle
File and is ready for Android studio.
Import into Android Studio
- In Android studio, close any projects currently open. You shoshould see
Welcome to Android StudioWindow.
- ClickImport Project.
- Locate the project you exported from eclipse, expand it, select
Build. gradleFile and clickOK.
- In the following dialog, leaveUse gradle wrapperSelected and clickOK. (You do not need to specify the gradle home .)
Now that your project is 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 stronugly 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.