Android: migration from eclipse to Android Studio

Source: Internet
Author: User
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
    1. Update your eclipse ADT plugin (you must have version 22.0 or higher ).
    2. In eclipse, selectFile> Export.
    3. In the window that appears, openAndroidAnd select
      Generate gradle build files
      .
    4. Select the project you want to export for Android studio and clickFinish.

Your selected project remains in the same location but now containsBuild. gradleFile and is ready for Android studio.

Import into Android Studio
    1. In Android studio, close any projects currently open. You shoshould see
      Welcome to Android Studio
      Window.
    2. ClickImport Project.
    3. Locate the project you exported from eclipse, expand it, select
      Build. gradle
      File and clickOK.
    4. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.