1

I know how to add a dependency to one specific flavor as shown here and here!

But on my current setup I need 1 flavor to use 1 version of the library and all the other flavors to use a different version. Something like:

// this gets applied to all flavors expect "otherFlavor"
compile 'com.awesome.library:lib:1.0'

// this gets applied only to "otherFlavor
otherFlavorCompile 'com.awesome.library:lib:1.1'

if I try as shown on this code I keep getting:

Error:Execution failed for task ':app:processotherFlavorDebugResources'. Error: more than one library with package name 'com.awesome.library'

is that possible without having to list every.single.flavor?

Thanks !

Community
  • 1
  • 1
Budius
  • 39,391
  • 16
  • 102
  • 144

0 Answers0