Build variants in Gradle for a Library Project in Android
It’s a @bifmadei answer from google code issue and it helps for me: Obsolete 1: Try setting this in the dependency project android { publishNonDefault true … } Obsolete 2: Starting from gradle 4.10.1 publishNonDefault is true by default. So just use the recommendation below: Include this in the project that uses it dependencies { … Read more