title: Firebase Tutorial 1 Friendly chat Error occurred configuring root project 'android-start'
body: <p>I am trying to start the Friendly Chat Firebase tutorial. But the gradle build throws an error and I can't really give anymore information as I don't know where to begin. However, a picture is worth a thousand words, and I believe that it contains everything relevant.</p>
  
  <ul>
  <li>Files downloaded from git google.json copied across</li>
  <li>Dependencies added and applied</li>
  <li>Build tools and IDE updated</li>
  </ul>
  
  <p>I noticed there is only a project <code>build.gradle</code> I cant find a module <code>build.gradle</code>. I have no idea if this has anything to do with the issue though.</p>
  
  <p>Originally threw error about unregistered VCS root, I clicked add root, but it didn't help.</p>
  
  <p><a href="https://i.stack.imgur.com/lIk5U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lIk5U.png" alt="enter image description here"></a></p>
  
  <p>Both <code>build.gradle</code> files are blue and when I click either one, it opens the tab named <em>android-start</em>(also blue), but the path is <code>C:\Users\User1\friendlychat\android-start\build.gradle</code> and the file contents are:</p>
  
  <pre><code>    // Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
          mavenLocal()
      }
      dependencies {
          classpath 'com.google.gms:google-services:3.0.0'
          classpath 'com.android.tools.build:gradle:2.0.0'
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          mavenLocal()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>EDIT: LogCat says <code>configure Android SDK</code></p>
  
  <p>If I click configure and set the SDK version and build tools version I get:</p>
  
  <pre><code>Error:(31, 0) Could not find method android() for arguments     [build_coejwo2h3fxgj0snev4rovui4$_run_closure4@512b9d86] on root project 'android-start' of type org.gradle.api.Project.
  &lt;a href="openFile:C:\Users\User1\friendlychat\android-start\build.gradle"&gt;Open File&lt;/a&gt;
  </code></pre>