Follow these steps to migrate Eclipse to Android studio: eclipseandroid

Source: Internet
Author: User

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.

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.