Several projects in Android Studio

I have been using eclipse for a couple of years, but finally decided to move to Android Studio. The problem is that over the years I have created more than 100 applications based on one project.

Applications are more or less the same, they import the main library, and they differ in graphics and a raw data file. That way, I could work with the main library and just click on the project that I wanted to update. But Android Studio doesn't seem to have the same structure as eclipse.

Is it possible to have a library as a module and all other projects, since other modules depend on the library module, and then export each module separately? Or do I need to create a different project for each "application"?

+4
source share
1 answer

Android Studio comes with a new build system: Gradle (while Eclipse uses Ant). Gradle lets you create project flavours. This means that you can create multiple assemblies with different package names and source sets. Have a look here: http://developer.android.com/sdk/installing/studio-build.html

Basically, you can have only one project and several projects that have different packages, a resource, and even another source code, where you need it.

+4
source

All Articles