Android Studio: How to exclude google-services module in product flavor?
<p>In my Android project, there are several product flavors:</p>

<pre><code>buildTypes {
    release {}
    debug {}
    staging {}
}

productFlavors {
    freeVersion {}
    proVersion {}
    partnerVersion {}
}
</code></pre>

<p>Also, i use Google Analytics:</p>

<pre><code>apply plugin: 'com.google.gms.google-services'

dependencies {
    compile 'com.google.android.gms:play-services-analytics:8.4.0'
}
</code></pre>

<p>How to exclude google-services in one of them? For example, in:</p>

<pre><code>freeVersion {}
</code></pre>