To migrate existing Android projects, simply import them using Android Studio:
- In Android Studio, from the main menu or the Welcome to Android Studio page, choose File > Import Project.
- Select the Eclipse root project directory and click OK.
Note: The Eclipse root directory must contain the
AndroidManifest.xmlfile. Also, the root directory must contain either the
.projectand .classpath files from Eclipse or the
- Follow the steps in the import wizard.
Android Studio imports the current dependencies, downloads libraries, and creates an Android Studio project with the imported Eclipse project as the main module. Android Studio also creates the required Gradle build files.
The import process replaces any JAR files and libraries with Gradle dependencies, and replaces source libraries and binary libraries with Maven dependencies, so you no longer need to maintain these files manually.
Note: If there are references to Eclipse workspace library files,
comment them out in the
that you imported from the Eclipse project. You can then add these files in the
build.gradle file. See
Configuring Gradle Builds.