I am using Gradle 4.4 with Gradle-Android plugin 3.1.1 on Android Studio 3.1.1.
I have 2 flavors \'a\' and \'b\' and I am unable to build my project due to the follo
FWIW you don't have to have matching flavors in your modules. You can tell it to fallback to the default build types.
By using matchingFallbacks
buildTypes {
aDebug {
testCoverageEnabled true
matchingFallbacks = ['debug']
}
bDebug {
testCoverageEnabled true
matchingFallbacks = ['debug']
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// This one already looks for 'release' which is added by default, so no need for fallback
}
}
https://developer.android.com/studio/build/dependencies#resolve_matching_errors