Questions tagged [android-variants]
8 questions
6
votes
2 answers
Android Studio: Give each variant its own icon
In Android Studio, I want each of my app variants to have its own icon.
I tried various ways, including what is suggested here
How to provide different Android app icons for different gradle buildTypes?
but it doesn't work
here is what I wrote in…

RichGG
- 115
- 1
- 10
5
votes
1 answer
Android Gradle: Install all build types on one device
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 such as: INSTALL_FAILED_CONFLICTING_PROVIDER or…

Benoit
- 4,549
- 3
- 28
- 45
4
votes
1 answer
Replace an XML file for each flavour in android
I am trying to integrate Braze into my application for push notification. Braze need us to create a braze.xml file inside src/main/res/values where we add the API key and other braze related stuff(here is the documentation).
Now I need to…

hushed_voice
- 3,161
- 3
- 34
- 66
4
votes
1 answer
Product Flavor returned as empty always
In my gradle(app) file, I am setting the Product flavor and build type as shown below
productFlavors {
mock {
}
develop {
}
qa {
}
staging {
}
prod {
}
}
buildTypes {
debug {
…

user264953
- 1,837
- 8
- 37
- 63
1
vote
1 answer
"is package not installed?" exception for project have different build variants
I have a question. When project is run, I rarely get fatal exception.
I have two different android applications in the same project for different build variants. But their package name are different.
In manifest file, my first application's package…

elifekiz
- 1,456
- 13
- 26
0
votes
2 answers
How to create dynamic URLs using Build Flavors in Android (Android Studio)
How to create dynamic URLs using Build Flavors in Android (Android Studio)
I have more than 15 URLs for each environment in my app, and in total we have 5 environments, how do I use these URLs from a common class, based on the Activated build…

Shubham Vyas
- 59
- 1
- 1
- 10
0
votes
1 answer
Unable to Upgrade my android code to gradle 3.5.3 while using android-apt
I am unable to upgrade code to gradle 3.5.3 when I tried a lot of error occurs.
here my old code app.gradle
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion…

Attaullah
- 3,856
- 3
- 48
- 63
0
votes
1 answer
How to programmatically prevent "conflicting provider" message
Can anybody tell me how I can install different builds for different flavors on one device without getting a "duplicate provider" error message neither in PlayStore nor in AndroidStudio?
I have different flavors for different countries in my app and…

luckyhandler
- 10,651
- 3
- 47
- 64