blob: 06b9e3f317de9af6572fab8de26e6f0657359b7d [file] [log] [blame]
page.title=Migrating to Android Studio
@jd:body
<div id="qv-wrapper">
<div id="qv">
<h2>See also</h2>
<ul>
<li><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/FAQ+on+Migrating+to+IntelliJ+IDEA">IntelliJ FAQ on migrating to IntelliJ IDEA</a></li>
<li><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Working+in+Eclipse+Compatibility+Mode" class="external-link"
>Eclipse Compatibility Mode</a></li>
<li><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/FAQ+on+Migrating+to+IntelliJ+IDEA" class="external-link"
>FAQ on Migrating</a></li>
</ul>
</div>
</div>
<p>If you're currently using Eclipse with ADT, we recommend you migrate to
<a href="{@docRoot}tools/studio/index.html">Android Studio</a> as soon as possible, because
the ADT plugin for Eclipse is no longer in active development.</p>
<p>To migrate existing Android projects from Eclipse,
you should export your projects from Eclipse in order to generate
Gradle build files:</p>
<ol>
<li>In Eclipse, select <strong>File &gt; Export</strong>.</li>
<li>Select <strong>Generate Gradle build files</strong> inside the Android folder, then click
<strong>Next</strong>.</li>
<li>Click <strong>Browse</strong> to find your project to export.</li>
<li>Select your project from the list, click <strong>OK</strong>, then <strong>Finish</strong>.</li>
</ol>
<p>You can then import the project into 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>
</ol>
<p>It's possible to import an existing Android project to Android Studio even if you
don't generate a Gradle build file from Eclipse&mdash;Android Studio will successfully build and
run projects using an existing Ant build file. However, in order to take advantage of build
variants and other advanced features in the future,
you should generate a Gradle build file using
the ADT plugin or write your own Gradle build file for use with Android Studio.</p>
<p><a href="{@docRoot}tools/studio/index.html">Learn more about Android Studio</a>.</p>