
What is the problem:
First, If I want to build different app with Android studio, we have to create different projects. When you want to generate quickly different apps, that differs only because of content, it can really be a hassle if the number is high. Which is it in our case.
free football tips from the experts tipsterbets.co.uk best football tips and soccer predictions
free football tips from the experts BETIPS.CO.UK best football tips and soccer predictions
What’s the Solution:
Thank to Android Studio for providing a way to build different apps in one project. The technique is called Android Product Flavors.
An example of what we did:
- Adding the product flavor in build.gradle file. As you see in the picture, I have added many flavor and each flavor we can specify different property like applicationId…\
- What you have to do next is create the flavor folder under the scr folder as shown in screenshot. Then you can add what you want which is individual specification for each project in side flavor folder.
- Then you can select the flavor you want to build the app.