title: Import Facebook SDK on Android Studio 0.5.1
body: <p>I've been searching around for a while now and tried every answer I could find with no success. I am starting to believe that the problem is in the android studio version.</p>
  
  <p>However here is what I've done:</p>
  
  <p>1 - I've downloaded the facebook sdk</p>
  
  <p>2 - Copied the sdk into my libs folder so the project looks like
      following:</p>
  
  <blockquote>
  <pre><code> MyProj
   -app
   --libs
   ---facebook
   ----build.gradle (2)
   --build.gradle (1)
   -settings.gradle
  </code></pre>
  </blockquote>
  
  <p>3 - I modified settings.gradle:</p>
  
  <pre><code>include ':libs:facebook', ':app'
  </code></pre>
  
  <p>4 - I modified build.gradle (1) to:</p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.0.3"
  
      defaultConfig {
          minSdkVersion 16
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
  
  
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'me.dm7.barcodescanner:zxing:1.0'
      compile 'com.koushikdutta.ion:ion:1.2.4'
      compile 'com.google.code.gson:gson:2.2.+'
      compile 'com.squareup.picasso:picasso:2.1.1'
      compile project(':libs:facebook');
  }
  </code></pre>
  
  <p>5 - Lastly edited build.gradle (2):</p>
  
  <pre><code> buildscript {
          repositories {
              mavenCentral()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:0.9.+'
          }
      }
  
  apply plugin: 'android-library'
  
  dependencies {
      compile 'com.android.support:support-v4:+'
  }
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.0.3"
  
      defaultConfig {
          minSdkVersion 16
          targetSdkVersion 19
      }
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              res.srcDirs = ['res']
          }
      }
  }
  </code></pre>
  
  <p>Now when syncing I get the annoying warning:
  Gradle 'MyApp' project refresh failed:
           Configuration with name 'default' not found</p>
  
  <p>And I am not able to use the facebook library.</p>
  
  <p>I guess I'm doing something wrong with the gradle files. Any ideas?</p>