Member-only story
Learn to use the most powerful Gradle system in Android effectively
Android Product Flavors
Here is everything you need to know about product flavors and real-time problems with solutions
9 min readSep 19, 2019
This is going to take time, grab a cup of coffee and make yourself comfortable
- Overview
- When to use Product Flavors
- Basics
- Flavors-creation
- Resource and java Files management for different flavors
- 3rd Party library integrations for different flavors
- Project Config at Product flavors level
- How to switch between build variants
- Real-time problems & solutions
- Useful links
Overview
Product flavors are nothing but preparing different dishes using the same core ingredients but adding minor flavor toppings to get a different taste. To better understand product flavors let us consider a generic example
Let’s take the preparation of an omelet
Base Ingredients: 2 eggs, salt, pepper, butter, cheddar, chopped chives