android-productflavors Questions

3

Solved

Lets say I have the following sourceSets: sourceSets { flavor1 { assets.srcDirs = ['repo-assets/flavor1'] res.srcDirs = ['repo-res/flavor1'] } flavor2 { assets.srcDirs = ['repo-assets/flavor2...

0

With reference to this answer. Is it possible to create a copy constructor for productFlavors and sourceSets using initWith just like the one in the linked answer. That one worked great for buildTy...

2

Solved

If I have 3 flavors flavor1, flavor2 and flavour3, each flavor has Dev,Pat and Prod "sub-flavours" versions which different parameters , but each main flavor have different resources. So I have no...

2

So this is a bit interesting, I'm unsure how exactly to set it up in android studio. I have several modules that have some re-usable components I use in various apps, however it would be nice to in...
Idiosyncrasy asked 7/7, 2015 at 19:44

1

Solved

When I build my project after trying to combine wearApp flavors and buildTypes with applicationIdSuffixes, i get the following error message: Error:Execution failed for task ':app:handleFirstCusto...

0

The problem We encountered an issue with a project that has multiple (2) product flavour dimensions and a wear module. On building a release we get no compile errors and the phone app works but th...

1

I'm creating a desktop Java app and would like to create two versions: free and paid. The difference is mainly in which resource files are included (at a future date, it may involve different code ...
Polynesian asked 5/1, 2016 at 5:47

2

Solved

I want to make all apk files for release to all stores, so I have to use a productFlavor for each apk: build.gradle buildTypes { release { ... } debug { ... } } productFlavors { red { ...

0

I'm trying to setup an project which relies on a library module which uses ".so" files. Until now I have: library module .so files into jniLibs: armeabi, armeabi-v7a and x86. this is the...

1

Solved

I am setting up an Android Library with different productFlavors. The library has a light and a full flavor. The file is setted up correctly: src/main/java/com/example/... for main classes src/f...

2

Solved

I'd like to design two custom applications for my android project. A custom application is one that extends application. I'd like my release build to have a custom application and the debug build t...
Progress asked 1/8, 2015 at 22:29

2

Solved

I'm building an app wit different build variant flavors. The flavors are "Free" and "Paid". I want to create some logic on my java classes which should only get triggered if the app is "Paid". Ther...
Extrovert asked 27/9, 2015 at 23:10

3

Solved

I have a library project and a application. I'd like to have 2 product flavours (store, dev) for both library and application. When I build the store flavour for the application I want to use the s...
Kennie asked 24/6, 2014 at 14:21

3

Solved

I have used build.gradle(app) to create different flavors of apk. But installing different flavors of same apk overrides the previous one. I want to create different apks to run on same device simu...
Foreconscious asked 14/10, 2015 at 13:5

1

Solved

How do I configure my project to be able to install the debug version alongside the release version when using GCM, ContentProvider, AccountType? (without the use of flavors) I keep getting errors...

1

I want to make APK split based on CPU ABI according to http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits, however I want to split the APK only for a certain product flavor. ...
Facilitation asked 2/7, 2015 at 9:55

2

Solved

I am trying to send Push notifications via Parse and integrating product flavors. When I implement product flavors, i am not able to receive Parse Push Notifications. Does anyone have any advise on...

2

I have a problem with facebook SDK version 4.0.0 -> I am trying to set up two different flavors of my app - staging and production. Everything works as fine as expected but I get INSTALL_FAILED_CO...
Trigonometry asked 8/5, 2015 at 12:42

1

Solved

I am creating an application that should have two flavors, netball and football. When I set up my project as per https://developer.android.com/tools/building/configuring-gradle.html only one of the...
Prolepsis asked 13/7, 2015 at 3:56

2

Solved

I have GCM sample android gradle project. Its worked well, when I add 2 flavors a push notification stopped to work. My compilation manifest (it's taken from app\build\intermediates\manifests\ex\de...

1

Solved

I have two dimensions of an app, call then green and blue. There will only be these two dimensions but an unlimited number of product flavors. This is the way I'm setting it up in gradle flavorDim...

0

As the title said, this is the problem. I have an android flavored app with modules. The app compiled using gradle in android-studio and in TeamCity server. We have custom task for creating the cod...
Jentoft asked 17/5, 2015 at 10:36

1

Solved

I have the following in my application-level build.gradle file: flavorDimensions "store", "features" productFlavors { amazon { dimension "store" ... } play { dimension "store" ... } none...
Lepidolite asked 13/5, 2015 at 17:24

0

I have defined a few flavors and buildTypes for my android app productFlavors { X { applicationId = "com.x.xxxx" } Y { applicationId = "com.y.yyyy" } } buildTypes { release { minifyEnable...
Rosinweed asked 22/4, 2015 at 21:10

1

Solved

What's the advantage of putting a buildConfigField to my flavor via gradle in comparison with a Constants.java file per flavor? Also what's the advantage of putting a resValue to my flavor via gra...
Generator asked 16/4, 2015 at 14:28

© 2022 - 2024 — McMap. All rights reserved.