tezvyn:

Explain what a Gradle product flavor is and give a free vs pro example

Source: developer.android.comintermediate

Tests understanding of build-variant dimensions beyond build types. A strong answer defines flavorDimensions, sets free and pro applicationIdSuffix values, and explains variant generation. Red flag: conflating flavors with build types or manual APK renaming.

Tests whether you deeply understand how Gradle models product dimensions and source-set isolation. A strong answer defines a flavorDimension named tier, declares free and pro productFlavors with distinct applicationIdSuffix and buildConfigField values, places code under src/free and src/pro, and explains that flavors multiply across build types to generate the variant matrix. Red flag: confusing flavors with build types, omitting flavorDimensions, or proposing manual package renaming instead of compile-time source sets.

Read the original → developer.android.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Explain what a Gradle product flavor is and give a free vs pro example · Tezvyn