O'Reilly logo

Mastering Android Studio 3 by Kyle Mew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Product flavors

Generally speaking, there are two reasons for wanting to create customized versions, or flavors, of our applications:

  • When we are creating versions for different form factors, such as a mobile phone and a tablet
  • When we want two different versions of our app to be available in the Play store, such as paid and free versions

Both of these situations can be catered for by configuring our build files, and this can be done for both debug and release APKs. New flavors and build types can both be configured using their respective dialogs, which can be found under the Build menu:

Build options

As always, it is best to see how these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required