I've been stuck with this all day. I created 2 options for my project and added them under buildtype in android in build.gradle. Then I created a res folder for both and changed the icons for each. When I start a project for any of the options, it shows an icon from the project.
My project structure is as follows
[project]
[app]
src
main
res
mipmap
flavor1
flavor2
res
mipmap
and my build.gradle
productFlavors {
flavor1 {
applicationId "abc"
}
flavor2 {
applicationId "abc"
}
}
sourceSets {
flavo1 {
res.srcDirs = ['src/flavor1/res']
}
flavor2 {
res.srcDirs = ['src/flavor2/res']
}
}
PS: nvm naming
source
share