Convert Eclipse Workspace to Android Studio Project
I have an Eclipse workspace with some Android projects, some are library projects, others are Android app projects that depend on those libraries.
For example, I have Lib1 Lib2 Lib3
both libraries and an application App1 App2
.
App1
required Lib1
and Lib3
, App2
required Lib1 Lib2 Lib3
.
I want to switch to Android Studio. I already have a gradle build script for each project and I am already using gradle to build apks.
How do I convert my Eclipse workspace to one or more Android Studio projects?
From what I read here Project vs Module , it is not good practice to have multiple apps in one Android Studio project, but you can have multiple library modules in one project, So I guess I need to create one module per app and import libraries multiple times, one for each project. And there is something like this:
App1
Lib1
Lib3
App3
Lib1
Lib2
Lib3
source to share
Android studio "import project" works pretty well. Just select the Eclipse project file to import and Android Studio will find the required libraries. It will also ask you if you want to turn libraries into dependencies.
Basically Android Studio does all the work for you.
You will also receive a text file detailing how Android Studio changed the file structure and what files it added or didn't use.
And yes, import each app into a separate android project.
source to share