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.