From b3e8c4b807576629abc6fdb4009a9f91141e6619 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Mon, 15 Dec 2014 18:05:01 -0800 Subject: docs: Update Eclipse migrate procedure Change-Id: I6cd292d457a7f2e975ceb0a11086fc5e35a78308 --- docs/html/sdk/installing/migrate.jd | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'docs') diff --git a/docs/html/sdk/installing/migrate.jd b/docs/html/sdk/installing/migrate.jd index 3c04cb4..345e89a 100644 --- a/docs/html/sdk/installing/migrate.jd +++ b/docs/html/sdk/installing/migrate.jd @@ -24,17 +24,31 @@ Android, so you should migrate to Android Studio to receive all the latest IDE u

To migrate existing Android projects, simply import them using Android Studio:

    -
  1. In Android Studio, close any projects currently open. You should see the - Welcome to Android Studio window.
  2. -
  3. Click Import Non-Android Studio project.
  4. -
  5. Locate the project you exported from Eclipse, expand it, select the - build.gradle file and click OK.
  6. -
  7. In the following dialog, leave Use gradle wrapper selected and click - OK. (You do not need to specify the Gradle home.)
  8. +
  9. In Android Studio, from the main menu or the Welcome to Android Studio page, + choose File > Import Project.
  10. +
  11. Select the Eclipse root project directory and click OK. +

    Note: The Eclipse root directory must contain the + AndroidManifest.xml file. Also, the root directory must contain either the + .project and .classpath files from Eclipse or the + res/ and src/ directories.

    +
  12. +
  13. Follow the steps in the import wizard.
-

Android Studio properly updates the project structure and creates the appropriate -Gradle build file.

+

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 project.properties or .classpath files + that you imported from the Eclipse project. You can then add these files in the + build.gradle file. See + Configuring Gradle Builds.

+

For more help getting started with Android Studio and the IntelliJ user experience, learn more about Android Studio and -- cgit v1.1