title: Android studio Gradle Could not find method compile()
body: <p>The past two days i have tried to find a solution to this problem but with no luck.</p>
  
  <p>I am trying to include <code>GSON</code> lib. Into my android project.</p>
  
  <p>Here is a picture of my folder structure:</p>
  
  <p><img src="https://i.stack.imgur.com/XRdau.png" alt="Folder"></p>
  
  <p>Now in my build.gradle i have the following:</p>
  
  <pre><code>    // Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  dependencies {
      compile files('libs/gson-2.2.4.jar')
  }
  </code></pre>
  
  <p>i have also right clicked gson-2.2.4.jar and added it as a lib.</p>
  
  <p>When i compile i get the following error:</p>
  
  <pre><code>    Gradle: A problem occurred evaluating root project 'notebox-android'.
  &gt; Could not find method compile() for arguments [directory 'libs'] on root project 'notebox-android'.
  </code></pre>
  
  <p>Can anyone help me with this?</p>
  
  <p>please tell me if you need more information!</p>