How to migrate Android project from Eclipse to Android Studio
As of 2nd April 2015, current Android Studio version is V1.1.0
I have been migrating a few of my Android eclipse projects to Android Studio, it is actually very simple and straight forward, Please see the following steps:
1. Welcome page of Android Studio -> Choose "Import Project (Eclipse ADT, Gradle, etc.)" 2. Choose the folder of our Eclipse project ** Make sure the project is compile-able in Eclipse (including its referenced projects if any)
In this case, the project name is "Shocking Deal-Android" but it has referenced on PhotoMovieReviewLibrary (please see the screen shot)
We need to select a destination folder to save this new Android Studio project.
In my case, I have a separated workspace folder for Eclipse and Android Studio (it is a good habit to have a separate folder management), so naturally I will select a new folder in Android Studio (if the folder is NOT exist then Android Studio will create it automatically)
There may be so many compile error, Eclipse may be more forgiving to skip the error in our code, resource images and even in our xml layout design, but Android Studio is very strict and may shows a few error which we have to fix before we can compile and run the project.
In my experiences, after completing the project migration then I normally tweak the gradle script a little bit, such as defining proper library version to use, etc.
NOTE: by default, Android Studio with Gradle need INTERNET connection to work properly for synch library to get latest version (eg: android-support-v4, etc.). But fortunately we can make Gradle to work offline (tell Gradle to not connect to Internet to get latest library version) and compile faster.
Falling in love with the world
Write : 2015-04-02 15:47:13
If you want to create a new reply then please login first.
Since 19 January 2007
Page hit : 886,437
Code update 24th June 2013
Brain is a very capable to solve big problems
but requires constant reminders about how to.