Top "Android-productflavors" questions

A Android product flavor is a customized version of an application built by Gradle.

Test package for different flavors in Android Studio

I am experimenting flavors on an application in androidstudio. I have to write different test classes for the flavors, as …

android gradle android-studio android-gradle-plugin android-productflavors
How to use multiple res.srcDirs and override some resources with gradle

I want to build different versions of my app based on different productFlavors, but need some degree of flexibility that …

android android-studio gradle build.gradle android-productflavors
Android - How To Get Flavor's ApplicationId

I'm building an app wit different build variant flavors. The flavors are "Free" and "Paid". I want to create some …

android gradle android-productflavors
How to change $(PRODUCT_BUNDLE_IDENTIFIER) in Xcode?

I am build different flavor of Flutter app with different Firebase environment (development and production). I need set different bundle …

ios xcode firebase flutter android-productflavors
How to use a different launcher activity in a product flavor?

I'm working on an Android library project, in the default src/main/AndroidManifest.xml, the MainActivity is the launcher activity. …

android android-intent android-manifest android-productflavors
buildConfigField depending on flavor + buildType

I'm trying to define a buildConfigVariable depending on the flavor + buildType. Ideally, this is what I want productFlavors { strawberry { buildConfigField "…

android android-gradle-plugin android-productflavors
Android flavor - cannot find symbol variable in R file

I have 2 flavors - paidapp and freeapp. The only difference that paidapp have 1 more button on MainActivity, say "paidbutton". paidapp …

android r.java-file android-productflavors
Gradle get current flavor for a specific task

I'm trying to deal with google-services.json and different flavors. The documentation says that we need the file in the …

android gradle google-play-services android-productflavors
No matching client found for package name processAppDebugGoogleServices

I have tried almost every related solution present on Stack Overflow. But the problem is still unsolved. Error: Execution failed …

android android-productflavors google-play-services
Localizing string resources added via build.gradle using "resValue"

This is in continuation to an answer which helped me on this post We can add the string resource as …

android android-studio android-gradle-plugin android-resources android-productflavors