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

Siva Ganesh Kantamani
9 min readSep 19, 2019

--

Photo by wu yi on Unsplash

This is going to take time, grab a cup of coffee and make yourself comfortable

  1. Overview
  2. When to use Product Flavors
  3. Basics
  4. Flavors-creation
  5. Resource and java Files management for different flavors
  6. 3rd Party library integrations for different flavors
  7. Project Config at Product flavors level
  8. How to switch between build variants
  9. Real-time problems & solutions
  10. 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

--

--

Responses (5)