title: How to properly setup Gradle in Android Studio for ActionBarSherlock?
body: <p>So I'm struggling to setup a very simple Project in Android Studio v0.2 with Gradle v1.6.
  I want to create a simple app that uses ActionBarSherlock, so I created a Project in Android Studio.<br>
  In the same root folder as the Project is created, I have downloaded the latest ABS.  </p>
  
  <p>So here's my structure:</p>
  
  <pre><code>|ABSAppProject 
  |..settings.gradle
  |..build.gradle
  |--ABSApp
  |....build.gradle
  |actionbarsherlock
  |..build.gradle
  </code></pre>
  
  <p>In the root <code>settings.gradle</code>, I have:</p>
  
  <pre><code>include ':ABSApp'
  include 'actionbarsherlock'
  project(':actionbarsherlock').projectDir=new File('actionbarsherlock')
  </code></pre>
  
  <p>In the <code>actionbarsherlock/build.gradle</code> I have:</p>
  
  <pre><code>apply plugin: 'android-library'
  
  buildscript {
      repositories {
          mavenCentral()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:0.5.+'
      }
  }
  
  dependencies {
    compile 'com.google.android:support-v4:r7'
  }
  
  android {
    compileSdkVersion 14
    buildToolsVersion '17'
  
    sourceSets {
      main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        res.srcDirs = ['res']
      }
    }
  }
  </code></pre>
  
  <p>And, finally in, the <code>ABSApp/build.gradle</code>, I have:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.5.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'com.android.support:support-v4:r7'
      compile project (':actionbarsherlock')
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "17.0.0"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 16
      }
  }
  </code></pre>
  
  <p>The root build.gradle is empty.</p>
  
  <p>When building, (using gradle build --info) I get:</p>
  
  <pre><code>Starting Build
  Settings evaluated using settings file '/Users/m/Documents/Projects/ABSAppProject/settings.gradle'.
  Projects loaded. Root project using build file '/Users/ma/Documents/Projects/ABSAppProject/build.gradle'.
  Included projects: [root project 'ABSAppProject', project ':ABSApp', project ':actionbarsherlock']
  Evaluating root project 'ABSAppProject' using build file '/Users/m/Documents/Projects/ABSAppProject/build.gradle'.
  Evaluating project ':ABSApp' using build file '/Users/m/Documents/Projects/ABSAppProject/ABSApp/build.gradle'.
  Evaluating project ':actionbarsherlock' using empty build file.
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring project ':ABSApp'.
  &gt; Failed to notify project evaluation listener.
     &gt; Configuration with name 'default' not found.
  </code></pre>
  
  <p>Building the ABS library alone using Gradle seems to work ok, so that gradle.build file is probably ok.  </p>
  
  <p>What am I doing wrong?</p>