Eclipse is the most popular open-source IDE for Application Development. It has various plugins and due to that it is possible to use Eclipse as and IDE for almost any programming language. For Android Application Development Eclipse is the most preferred IDE, but now Application developers are preferring Android Studio because of its feature and ease of use. Android Studio is in beta right now but its an IDE worth exploring.
In this post i will explain How to Migrate Existing Android Project From Eclipse to Android Studio
1. Import Directly Into Android Studio :
This is the easiest method to import your existing project from eclipse to android studio. Since Android Studio project structure is different from Eclipse, while importing using Android Studio Importer, it automatically make some changes to your Eclipse Project which are required to run your program in Android Studio. Required changes includes replacing existing JAR files and libraries with Gradle dependencies. It also replaces your source libraries and binary libraries with Maven dependencies, and due to that you don’t need to maintain these manually.
2. Export From Eclipse IDE :
This method is more complicated and time consuming than first one. If you prefer Eclipse Directory Structure then you can achieve this in Android Studio using Export option from Eclipse. Usually you should use this option when you have lot of Eclipse specific directory structure and Android Studio Importer is unable to resolve this.
Now lets do the migration one by one using both methods.
Steps to Import Eclipse Project Directly Into Android Studio
You should know you existing Eclipse project location before using this method. If you know it then you just need few more clicks to import. Follow these steps
- Launch Android Studio and from welcome screen, click on ‘Import Project’
- Navigate to your eclipse project location and click on ‘Import’
- Read the message about import process and then click on ‘Next’
- Android Studio will show you some option, leave them selected and click on ‘Finish’
After that Android Studio will import your Eclipse Project and show you import summary and it contains information about moved files, location, third party libraries and JAR files. This import summary contains everything you need to know, so make sure you read it carefully.
Steps to Export From Eclipse IDE and Import In Android Studio
If some how first method does not works for you then don’t worry you can use this method. In some cases first method may not work, because Android Studio is not fully compatible with Eclipse and Its in Beta right now. Before you use this method, make sure Eclipse ADT plugin is up to date because you will need version 22.0 or higher. Once you are ready follow these steps
- Select Export option from File menu
- A window will open, from that open ‘Android’ folder and select ‘Generate Gradle build files’ and click on ‘Next’
- Then select the project you want to export and click on ‘Next’
- From Export option decide the modules which Eclipse need to export and click on ‘Finish’
- After that you will get ‘Export Successful message’ and also the path of exported Project.
- Now open Android Studio, and from welcome screen click on ‘Import Project’
- Go to exported project location, selcect it and click on ‘Import’
- Android Studio will import your project and its now ready to use.
So these are the two methods by which you can import your existing Android project from Eclipse to Android Studio.
Related Post you should check :
- How To Create An Android App Using Any Android Phone or Tablet
- 6 Best Android Apps For Developers
- Hello World! on Android using LiveCode
- Create Apps for Android, iOS, Linux Quickly using LiveCode