title: google-services plugin could not detect any version for com.google.android.gms or com.google.firebase - strange behaviour
body: <p>I have project with 4 modules:</p>
  
  <ul>
  <li>app (main)</li>
  <li>common-lib</li>
  <li>C</li>
  <li>D</li>
  </ul>
  
  <p>I have correctly set firebase as states here: <a href="https://firebase.google.com/docs/android/setup" rel="noreferrer">https://firebase.google.com/docs/android/setup</a></p>
  
  <p>In my <strong>app module</strong> I don't use any additional libraries, only module dependencies:</p>
  
  <pre><code>dependencies {
      debugCompile project(path: ':common-lib', configuration: 'debug')
      releaseCompile project(path: ':common-lib', configuration: 'release')
  }
  </code></pre>
  
  <p>In my <strong>common-lib module</strong> I use firebase libraries:</p>
  
  <pre><code>dependencies {
      (...)
      compile 'com.google.firebase:firebase-core:11.2.0'
      compile 'com.google.firebase:firebase-crash:11.2.0'
      compile 'com.google.firebase:firebase-messaging:11.2.0'
      compile 'com.google.firebase:firebase-config:11.2.0'
      compile 'com.google.firebase:firebase-ads:11.2.0'
  }
  </code></pre>
  
  <p>In this situation project compiles but I got the message:</p>
  
  <pre><code>google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
  please apply google-services plugin at the bottom of the build file.
  </code></pre>
  
  <p>What is interesting when I copy common-lib firebase dependencies to my app module the message disappear.</p>
  
  <p><strong>Is it a bug? Did I set something wrong? Is my application output file contains proper 11.2.0 version of firebase libraries or as the messages says 9.0.0 ?</strong></p>
  
  <hr>
  
  <p><em>Edited</em></p>
  
  <p><strong>project build.gradle:</strong></p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'
          classpath 'com.google.gms:google-services:3.1.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          maven {
              url 'https://maven.google.com'
              // Alternative URL is 'https://dl.google.com/dl/android/maven2/'
          }
          maven { url 'https://jitpack.io' }
      }
  }
  </code></pre>
  
  <p><strong>app module build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      (...)
  }
  
  
  dependencies {
  
      debugCompile project(path: ':common-lib', configuration: 'debug')
      debugTestCompile project(path: ':common-lib', configuration: 'debugTest')
      releaseCompile project(path: ':common-lib', configuration: 'release')
  
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p><strong>common-lib moudle build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  
  android {
      (...)
  }
  dependencies {
      (...)
      //firebase
      compile 'com.google.firebase:firebase-core:11.2.0'
      compile 'com.google.firebase:firebase-crash:11.2.0'
      compile 'com.google.firebase:firebase-messaging:11.2.0'
      compile 'com.google.firebase:firebase-config:11.2.0'
      compile 'com.google.firebase:firebase-ads:11.2.0'
  }
  </code></pre>