Kristin Marsicano

Build Variants: Product Flavors

Kristin Marsicano | Nov 16, 2018

In this series, you will learn how to produce separate APKs from the same code base using product flavors. Each flavor will be branded differently, including a custom launcher icon, color scheme, and app name.

In this screencast, which is part 1 of the series, you will learn how to:

- Define product flavors in your gradle file, each with a custom application id
- Build and install flavored variants

In the next video you will learn how to use the main source set to share java and resource files, and also how to create custom source sets for each flavor to provide custom resource files for each flavored variant.

You can use these same techniques in any scenario where you want to build apps with similar functionality and tweak them slightly, such as having a free and paid version of your application.

For the More Curious...

Android Build Variants
BNR Guide to Android
Android & Kotlin Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Skill Pack

This screencast is part of a skill pack called Android Build Variants.

Related Screencasts

Explore other screencasts related to this topic.