{redirect:https://www.jetbrains.com/idea/help/importing-an-existing-android-project.html|delay=0} |
<table width="100%" class="navigation"> <tr> <td width="33%" align="left"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Create+a+New+Android+Project">Previous</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td]> <td width="33%" align="center"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA">Top</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3ETop%3C/a%3E%3C/td]> <td width="33%" align="right"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Explore+the+Project+Structure">Next</a></td> </tr> </table> |
With IntelliJ IDEA not just you can create brand new projects, but you can also import existing projects set up and developed using other tools and approaches.
Click on
{span:class=shortcut}File → Import Project{span} |
You can create a new IntelliJ IDEA project starting from a variety of existing projects. In particular, you can import from an existing Eclipse, Maven or Gradle project. You can also build a new project right from a bunch of source files regardless of specific project files.
Once the source directory is known, IntelliJ IDEA needs to know whether you want to build a new project from scratch using files in the specified location or whether you want IntelliJ IDEA to assume a given project model (i.e., Eclipse, Maven, or Gradle) and proceed in a more automated way.
Let's choose to create a new project from source files.
You specify the name and the location of the new project being created from existing source files.
Because in this case there's no known project model to process, the wizard develops through quite a few steps as IntelliJ IDEA find a match about what's available on disk and what a regular Android project requires.
For example, you should indicate whether you want gen and src folders.
Likewise, you are asked to confirm the import of any libraries found in the source project.
Finally, you should indicate the Java SDK and Android platform to be used for the new project.
Finally, at the end of the wizard you have a brand new IntelliJ IDEA project built from existing files and projects.
The new project is now ready for building.
<table width="100%" class="navigation"> <tr> <td width="33%" align="left"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Create+a+New+Android+Project">Previous</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td%7Chttp://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3EPrevious%3C/a%3E%3C/td]\]> <td width="33%" align="center"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA">Top</a></td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3ETop%3C/a%3E%3C/td|http://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3ETop%3C/a%3E%3C/td%7Chttp://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+Android+Development+in+IntelliJ+IDEA%22%3ETop%3C/a%3E%3C/td]\]> <td width="33%" align="right"><a href="http://confluence.jetbrains.com/display/IntelliJIDEA/Explore+the+Project+Structure">Next</a></td> </tr> </table> |