I\'m wondering how to add dependency to specific productFlavor and buildType in gradle. For example I have productFlavor free and build type release
free
release
There is built-in support for flavor and buildType dependencies.
dependencies { flavor1Compile "..." freeReleaseCompile "..." }
http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Sourcesets-and-Dependencies