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