Top "Android-productflavors" questions

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

No matching client found for package name (Google Analytics) - multiple productFlavors & buildTypes

Context: I'm trying to set up Google Analytics for my app. (having 4 custom buildTypes and more than a few productFlavors) …

android android-studio gradle google-analytics android-productflavors
Multiple dex files define <my package>/BuildConfig, can't find the cause:

I'm using the new gradle build system and I'm facing the following problem: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: …

java android gradle dex android-productflavors
How to customize the APK file name for product flavors?

I am customizing the name of the APK file of my Android application within the build.gradle script as follows: …

android gradle android-gradle-plugin build.gradle android-productflavors
Gradle: add dependency for a specific flavour of the library

I have a library project and a application. I'd like to have 2 product flavours (store, dev) for both library and …

android gradle library-project android-productflavors
Product Flavor: Duplicate class found

I have a question, but I'm sitting here in front of my app since hours but I can't understand what …

android android-gradle-plugin kotlin android-productflavors
How to define and use a constant in Gradle build script (Android)?

I'm working on an Android application with Gradle as its build system. My objective is to use a value (a …

android groovy gradle build android-productflavors
How to use build types (debug vs release) to set different styles and app names?

Background On Android Studio, you can have different build types, each has its own configuration, similar to product-flavors (as shown …

android android-studio android-resources android-productflavors android-build-type
How to use flavors with different app names in Android studio?

In my app-level build.gradle I have the following flavors: productFlavors { originalFlavour{ } freeFlavour{ } } The thing is building both flavors I …

android android-studio android-gradle-plugin build.gradle android-productflavors
Force locale for Android flavor with resConfig

I am trying to use the resConfig and resConfigs from the Android Build system. Android Studio version 1.2.2 Gradle build version 1.2.3 …

android gradle localization locale android-productflavors
Android studio gradle flavor dimensions build varients not working correctly

I have two dimensions of an app, call then green and blue. There will only be these two dimensions but …

android-studio gradle android-gradle-plugin build.gradle android-productflavors