Questions tagged [build-variant]
65 questions
0
votes
0 answers
How to have a different version of a kotlin file only for the mock build variant
I currently have multiple buildTypes and productFlavors:
freemiumDebug
freemiumRelease
paidVersionDebug
paidVersionRelease
.. and many many more. I want to add a mock buildType. So that I have freemiumMock:
buildTypes {
mock {
…

Jim Clermonts
- 1,694
- 8
- 39
- 94
0
votes
1 answer
Dependent features configured but no package ID was set. Android two apps of one project.... Admin and User
error screen while building superadmin
Hello guys, I wanted to make an android app of admin separate from user app so I decided to make a module for it .SuperAdmin is an application module.I want to make it for only admin and this error is showing…
user19853280
0
votes
0 answers
How to add specific library implementations in the gradle based on the build flavors
I want to use some specific libraries that have some usage in the java classes and also in the Android Manifest.
But I want to use those libraries and their usage only for a specific product flavor and not for other flavors. I couldn't find the…

Afnan Khakwani
- 3
- 3
0
votes
1 answer
managing google service json for multiple build variant with different application ID
In my project, there is 2 build type debug and release as usual and one flavour dimension with 3 different values flavour_1, flavour_2 and flavour_3, so earlier all build variant has the same application id and only one variant can be installed in a…

Vikas Pandey
- 1,115
- 1
- 15
- 25
0
votes
0 answers
How to change Build variant Programatically in Android?
I am making an application in Kotlin where, there is a dropDown menu with my pre-made build variant like QA, PROD & DEBUG.
I want to change my build variant based on a selection from DropDown.
Due to some restrictions, I can't share my code. Any…

coder_baba
- 447
- 3
- 21
0
votes
2 answers
Run Gradle task on the basis of Build Variant
I have been struggling on this for past 2 days. There are several solutions on stack overflow which didn't work for me.
I am trying to ignore gradle task for prod environment.
To execute my task i.e. dokkaHtml on build, I am using this command…

Archi
- 11
- 2
0
votes
0 answers
android - build variants ID
I've app in several build variants. One of the variants is global, the others local.
I don't want support the "local" variants any more. Is it possible (in google play store or in app) set that a global variant should be used for the…

Mata3311
- 1
- 2
0
votes
1 answer
How i can find Build variants in Intelij Idea as in Android Studio?
How I can find Build variants for Intelij Idea as in Android Studio?
IntelliJ Idea:
Android Studio:

Morozov
- 4,968
- 6
- 39
- 70
0
votes
1 answer
Handling DropBox with different Build Variant
I'm facing an issue with dropbox in my 2 apps.
in fact I have 2 build variants and to be able to handle different secrets for both apps I use Gradle to inject the value into the manifest but for dropbox, i always have this error
The installation did…

DaRkNight
- 188
- 12
0
votes
1 answer
Why does Android Studio get into this failed state (builds but displays App(x) & doesn't want to run)?
Notice that little red x on the app button? It means I cannot run, even though it builds.
Running version 4.2.1 of Android Studio:
Then, if I try to run, I see the following:
Clicking the [Fix] button displays the following:

raddevus
- 8,142
- 7
- 66
- 87
0
votes
1 answer
How can I combine 2 Similar Projects With Android Build Variant?
We do have 2 similar projects for an app. The first one is for my country and the second one is for the EU. They are %90 same may be more. We do want to merge these two projects into one and switch between them with build variants. Is that possible?…

fatihberatcan
- 65
- 7
0
votes
1 answer
Custom Views giving inflation error when using different build variants with different applicationId in Android Studio
I have few custom views in my code and I am using them in layout files. For ex- ExpandableAppBarBehavior here in AppBArLayout

Anupriya
- 1,663
- 3
- 17
- 28
0
votes
1 answer
Android build variants multiple applications
I have one Android project contains 2 modules:
app - which is a standard Android application.
core - which is Java-library module.
I've done it this way because I need to use the core functionality in the non-Android environment, as a standalone…

user1080528
- 75
- 1
- 6
0
votes
1 answer
How to synchronize build variants among apps
I am working on a project that contains multiple applications. Several of them contain the same flavors. The same values on a flavor dimension, precisely.
I would like to have their value synchronized, if possible automatically. Otherwise, I would…

EnzoMolion
- 949
- 8
- 25
0
votes
1 answer
Determine buildType for other modules in Android
I have 2 buildType for my app module named release and debug.
This module is depended on some other modules like lib1.
When I want to assemble an apk, I should run:
./gradlew assembleRelease
In both of build.gradle file in app and lib1, I defined…

beigirad
- 4,986
- 2
- 29
- 52