Android Studio 2.2.2 import the project created in Eclipse, androideclipse

Source: Internet
Author: User

Android Studio 2.2.2 import the project created in Eclipse, androideclipse

Recently, I used the video tutorial to learn about Android. I used Adt to write Android programs. I replaced the tutorial with Android Studio in the middle. So I installed android studio 2.2.2 and downloaded the sdk, also change the development environment.

However, the tutorial does not explain how to import the old Eclipse project to Android Studio (.

I spent a whole day searching for related articles on the Internet and found that the problem could not be completely solved, probably because there are few new versions of as-related articles. So I tried to import the data step by step after a great deal of trouble. After the preliminary work was done, I recorded the problems encountered during the import and the solutions.

 

The Android Studio-Import project (Eclipse ADT, Gradle, etc.) option is available on the as startup interface, which is used to Import Eclipse projects. This is a brand new Android Gradle Project Import method.

However, you cannot directly import a project written in Eclipse. After importing the project, an error is reported.

Cocould not find method android () for arguments [build_9xx8trk5589b51rsvzzdwphd5 $ _ run_closure2 @ 3c62b433] on root project 'xxxxxx' of type org. gradle. api. Project.

I have been searching for a long time and have not found a solution. There are even few articles about this error.

Therefore, the second method is used, which is compatible with the Eclipse import method.

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.