Android Development: "Gradle Recipes for Android" reading notes (translation) 2.2--importing eclipse-developed projects into Androidstudio

Source: Internet
Author: User

Problem:

You want to import an Eclipse ADT project into Android Studio.

Solution:

Android Studio provides an import wizard that can rewrite existing projects.

With:

On the Welcome page of Android Studio, display the wizard button for importing Eclipse or Gradle projects.

The link opens the navigation that lets you select the file address of an existing Eclipse project. Using the old project structure, RES,SRC and Androidmanifest.xml are all directly under the root directory. Such as:

Choosing a destination directory, navigation provides a dependency to convert the jar package to Gradle, as well as some other optional options:

The wizard will reorganize the project. The default one Import-summary.txt window shows the major changes.

Because the Androidmanifest.xml file has not been changed, a meeting under Android studio prompts for some error messages.

Android Studio Hint Targetsdkversion is set to the old ADROIDSDK version. It also indicates that minsdkversion and targetsdkversion are overwritten by the values under the Gradle build file. The simplest way to handle this is to delete the <use-sdk> node and maintain the information under Build.gradle.

Android Development: "Gradle Recipes for Android" reading notes (translation) 2.2--importing eclipse-developed projects into Androidstudio

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.