Skip to main content

Import Eclipse project into Android Studio


Hi , for some developer it will little difficult move on from eclipse into android studio. because the hirarchy of project is different beetwen eclipse and android studio. Here I provide a tutorial to import your eclipse project to android studio. #PREPARE ECLIPSE PROJECT

1 Setting project.properties — Open your folder eclipse project, you can found file project properties in outside.

3 you must remove all line android.library.reference.1

#IMPORT INTO ANDROID STUDIO

  1. Open your android studio.
  2. Select Import Eclipse ADT, Gradle, Etc.
  3. Select your modified eclipse project
  4. Checklist all menu
  5. Your project ready

#ADD DELETED REFERENCE LIBRARY

-For example google play services library :

In Eclipse, if we want to add Google Play Services to a project, we’ll simply import the play services project to workspace and add it as a library project. But in Android Studio, if you want to add play services, follow below steps.

Open your project’s build.gradle file and add below line under dependencies module. This will add all the Play Services APIs to your project.

dependencies {
compile 'com.google.android.gms:play-services:7.0.0'
}

You can also selectively add the play services APIs which are necessary to your project.

The below will be add Google Analytics and Maps modules to your app.

dependencies {
compile 'com.google.android.gms:play-services-base:7.0.0'
compile 'com.google.android.gms:play-services-analytics:7.0.0'
compile 'com.google.android.gms:play-services-maps:7.0.0'
}

reference : androidhive

Comments