Over a million developers have joined DZone.

Migrating Project From Eclipse to Android Studio

DZone's Guide to

Migrating Project From Eclipse to Android Studio

Learn how to migrate an Eclipse project to Android Studio with this awesome tutorial.

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

Android Studio is the official integrated development environment (IDE) to develop android apps. It was announced in 2013 Google I/O conference. Based on JetBrains’ IntelliJ IDEA software, Android Studio is designed specifically for Android development. It has replaced Eclipse Android Development Tools (ADT) as Google’s primary IDE for native Android application development. And, now it is strongly recommended to migrate the projects to Android Studio from ADT.

Migrating to Android Studio requires changing the structure of the project and moving to a new build system. Here is the link with instructions for migrating eclipse project to android studio:


Tired of reading a lengthy documentation? Well, I have a simpler way to migrate and here you go!

  1. Start off with a sample Android Studio project.
  2. Open android studio and create a new project (or) just download a ‘sample’ studio project here: https://github.com/AppLozic/eclipse-to-android-studio-migration.

Now, open the downloaded project in Android Studio by following the below instructions.

  1. Import eclipse project modules into Android Studio.
  2. Select File -> New -> Import Module

Image title

Next, select the path of the eclipse project and import the modules. In case, if you see the message “Failed to sync Gradle project,” then click on “Install Build Tools and sync project…”

Now, remove the sample project modules by following the below simple steps:

  1. Open settings.gradle and remove “include ‘:app’”
  2. Right click on “app” module and “Delete” it.

Now, what we have is the Eclipse project open in Android studio with the Gradle build.

Here are few other links which might help you:

Hope this helps. Have queries? Feel free to comment below, would be happy to answer/resolve.

Happy Coding!

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

android studio vs eclipse ,android ,eclipse ,mobile

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}