As we know that Google has come up with new Android Development IDE Android Studio which is specially developed for Android development. I will be posting more information about the IDE. Today I am going to post about how to import Android projects which you developed using Eclipse.
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
- Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
- In Eclipse, select File > Export.
- In the window that appears, open Android and select Generate Gradle build files.
- Select the projects you want to export for Android Studio and click Finish.
build.gradle
file and are ready for Android Studio.Import into Android Studio
- In Android Studio, select File > Import Project.
- Locate a project you exported from Eclipse, select the project's root directory and click OK.
- Select Create project from existing sources and click Next.
- Follow the walk-through to complete the import process.
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.
thanks....
No comments:
Post a Comment