android-productflavors Questions

1

i've got a build.gradle file setup with the following (i've obviously excluded parts that shouldn't matter for brevity): android { defaultConfig { ndk { abiFilters 'armeabi', 'armeabi-v7a', 'x86' ...

1

I have a bunch of product flavors defined for my build. However in some scenarios I want to build without a flavor. However when I try to build a release with no flavor, ie gradlew assembleReleas...
Longlegged asked 20/7, 2015 at 15:37

3

Solved

I have two build variants in my app, one is an standard app edition and the second one is a customization app. productFlavors { customConfig { minSdkVersion 14 applicationId 'es.com.custom' ta...
Recompense asked 4/5, 2017 at 8:43

1

Solved

I just created 2 flavors for my app: Staging and Production. Everything seems to work well in both flavors so now I would like to upload my staging release apk (signed) so that testers can test it...
Lody asked 30/4, 2017 at 14:43

1

When i try to compile my app with flavors based on minSdk i receive an error: Error:Execution failed for task ':app:processCurrentDebugGoogleServices'. Please fix the version conflict eith...

3

Solved

In my app-level build.gradle I have the following flavors: productFlavors { originalFlavour{ } freeFlavour{ } } The thing is building both flavors I get the same App Name. Instead I would l...

2

I have configured my project to have multiple product flavors. I have the following code in my module build.gradle: android { // Rest of the configuration omitted for clarity buildTypes { debug...
Proceed asked 25/1, 2017 at 9:57

1

I have an issue with test and androidTest source directories for multi-dimension flavors. Given the following flavors: flavorDimensions "taste", "serving" productFlavors { chocolate { flavorDi...

5

Solved

I've juste added some flavors (or productFlavors if you want) to my project. The fact is that when I publish the library to bintray, all flavors are uploaded (which is great), but I'm unable to u...

1

I have an Android Studio project that currently has 2 product flavors in the build.gradle as follows: productFlavors { parent { applicationId "xxx.parent" } teacher { applicationId "xxx.teac...
Aggravation asked 22/8, 2016 at 20:34

1

Solved

We have 2 product flavors in our app and one flavor has a class (FlavorSpecificClass) that the other does not. We have a junit test for FlavorSpecificClass in the src/test folder which will not com...
Moue asked 25/1, 2017 at 19:16

0

I am wondering if someone has tried to use Android Product Flavors for simple Java Web Projects (e.g. Spring Boot) and can show me the best approach to do that? We are using IntelliJ for web servi...
Stallings asked 16/1, 2017 at 10:37

1

EDIT flavors and paths: Currently I have: sourceSets.whenObjectAdded { sourceSet -> def sourceData = rootProject.ext[sourceSet.name] sourceSet.java.srcDirs = sourceData.javaDirRelease } ...

3

I'm building an Android app with multiple productFlavors, and using Facebook SDK v4.1 for login and sharing contents. The problem is that when I try to install an app on a device which already has ...

2

I use productFlavours in my app. I'm also using multi dex. defaultConfig { multiDexEnabled true minSdkVersion 17 targetSdkVersion 22 ... } productFlavors { prodFlavor1{...} prodFlavor2{...
Squat asked 3/12, 2015 at 9:3

2

Solved

I am experimenting flavors on an application in androidstudio. I have to write different test classes for the flavors, as I have different class files for the flavors. But I wonder if there is any ...

2

Solved

Being short - is there a way to keep flavor configs in separate .gradle files? And for more details - I'd like to have per flavor .gradle files (like flavorGermany.gradle, flavorUkraine.gradle, fl...

2

Solved

Background On Android Studio, you can have different build types, each has its own configuration, similar to product-flavors (as shown here) The problem I wish that each time I have my app insta...

1

What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors - or now unit-tests and integration-tests. You can only have one active source-set that ...

1

I need to make different flavors for test libraries. Why? Well, I want project to be fully secured so I wanna minifying to be enabled all the time(even for debug build type). While making tests I'...
Lorrimor asked 26/2, 2016 at 17:19

1

I have problem, when I am still adding new flavors, it takes more and more time to build. I add it like this: productFlavors { okapps { applicationId = 'cz.anywhere.okapps' signingConfig = Adam...
Symphonize asked 11/3, 2015 at 11:23

2

Solved

How to remove an activity from an app flavor? Here is a simplified example, I have an app which has the following two flavors (Paid and Free). The app is small and only has 3 activities (MainActivi...

2

Solved

I have an app that reference ~ 100K methods, with min Sdk = 16 Here is 2 option for assembling: Proguard shrink this bunch of methods to only 44K methods Use Multi Dex Now I have some common u...

2

Solved

This question in continuation of my other question, which i want to improve further. I am being able to group flavors (having common configuration) under sourceSets with the following code : (got...

3

This is in continuation to an answer which helped me on this post We can add the string resource as follows from build.gradle: productFlavors { main{ resValue "string", "app_name", "InTouch Me...

© 2022 - 2024 — McMap. All rights reserved.