title: How to configure build.gradle files of an existing project with actionbarsherlock lib?
body: <p>I have an existing project MyProject in eclipse that use the library actionbarsherlock (version 4.3.1). The project compiles and runs in android studio, but I don't get build variants. Please help!</p>
  
  <p><strong>Here is setting.gradle and build.gradle of my root folder (project_workspace):</strong></p>
  
  <pre class="lang-groovy prettyprint-override"><code>// setting.gradle:
  include ':MyProject'
  include ':actionbarsherlock'
  
  build.grade:
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:gradle:0.4'
      }
  }
  </code></pre>
  
  <p><strong>build.gradle of myProject:</strong></p>
  
  <pre class="lang-groovy prettyprint-override"><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4'
      }
  }
  apply plugin: 'android'
  
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      compile project(':C::Users:&lt;myname&gt;:project_workspace:actionbarsherlock')
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "17.0.0"
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
          instrumentTest.setRoot('tests')
      }
  
  }
  </code></pre>
  
  <p><strong>build.gradle of actionbarsherlock:</strong></p>
  
  <pre class="lang-groovy prettyprint-override"><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4'
      }
  }
  apply plugin: 'android-library'
  
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
  }
  
  android {
      compileSdkVersion 14
      buildToolsVersion "17.0.0"
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
          instrumentTest.setRoot('tests')
      }
  }
  </code></pre>
  
  <p>I also read a lot of question and answers here, and I looked at the gradle samples, but I don't get it.
  Please help me, I never worked with maven or ant before!
  If you need more information -> tell me.</p>