diff options
author | Rich Slogar <rslogar@google.com> | 2015-05-05 00:59:34 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-05 00:59:34 +0000 |
commit | 2f6261534b0916714715ffa9e2800716dd900eb8 (patch) | |
tree | b5b110984dc720b7a240622efb76ffe71b7df2ec /docs | |
parent | 168bbcef02603b35b9fad53d923310b9a80acb5b (diff) | |
parent | 39220a7e924e659dffccd94ea7680f3ef8ac14b6 (diff) | |
download | frameworks_base-2f6261534b0916714715ffa9e2800716dd900eb8.zip frameworks_base-2f6261534b0916714715ffa9e2800716dd900eb8.tar.gz frameworks_base-2f6261534b0916714715ffa9e2800716dd900eb8.tar.bz2 |
am 39220a7e: am 023901c6: am ffd0e519: Merge "docs: Update Eclipse migrate procedure" into lmp-docs
* commit '39220a7e924e659dffccd94ea7680f3ef8ac14b6':
docs: Update Eclipse migrate procedure
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/sdk/installing/migrate.jd | 32 |
1 files changed, 23 insertions, 9 deletions
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 <p>To migrate existing Android projects, simply import them using Android Studio:</p> <ol> - <li>In Android Studio, close any projects currently open. You should see the - <strong>Welcome to Android Studio</strong> window.</li> - <li>Click <strong>Import Non-Android Studio project</strong>.</li> - <li>Locate the project you exported from Eclipse, expand it, select the - <strong>build.gradle</strong> file and click <strong>OK</strong>.</li> - <li>In the following dialog, leave <strong>Use gradle wrapper</strong> selected and click - <strong>OK</strong>. (You do not need to specify the Gradle home.)</li> + <li>In Android Studio, from the main menu or the <strong>Welcome to Android Studio</strong> page, + choose <strong>File > Import Project</strong>.</li> + <li> Select the Eclipse root project directory</strong> and click <strong>OK</strong>. + <p class="note"><strong>Note:</strong> The Eclipse root directory must contain the + <code>AndroidManifest.xml</code> file. Also, the root directory must contain either the + <code>.project</code> and <strong>.classpath</strong> files from Eclipse or the + <code>res/</code> and <code>src/</code> directories.</p> + </li> + <li>Follow the steps in the import wizard. </li> </ol> -<p>Android Studio properly updates the project structure and creates the appropriate -Gradle build file.</p> +<p>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. </p> + +<p>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.</p> + + <p class="note"><strong>Note:</strong> If there are references to Eclipse workspace library files, + comment them out in the <code>project.properties</code> or <code>.classpath</code> files + that you imported from the Eclipse project. You can then add these files in the + <code>build.gradle</code> file. See + <a href="{@docRoot}tools/building/configuring-gradle.html">Configuring Gradle Builds</a>. </p> + <p>For more help getting started with Android Studio and the IntelliJ user experience, <a href="{@docRoot}tools/studio/index.html">learn more about Android Studio</a> and |