title: Facebook SDK 3.23.0 with Android Studio 1.1.0
body: <p>First of all, when I try to add it with "import module" and then "add dependency" I get the error:</p>
  
  <blockquote>
    <p>Error:(19, 0) Could not find property 'ANDROID_BUILD_MIN_SDK_VERSION' on project ':facebook'.</p>
  </blockquote>
  
  <p>So I went ahead and created a gradle.properties file in the facebook module folder, then it gives me this error:</p>
  
  <blockquote>
    <p>Error:(111, 0) Cannot call getBootClasspath() before setTargetInfo() is called.</p>
  </blockquote>
  
  <p>For this I couldn't even find a similar problem on the web. Afterwards I tried to import it with maven. I followed the instructions on <a href="https://developers.facebook.com/quickstarts/" rel="nofollow">https://developers.facebook.com/quickstarts/</a> my build.gradle file:</p>
  
  <pre><code>repositories { mavenCentral() }
  
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:21.0.3'
      compile files('libs/bolts-android-1.1.4.jar')
      compile files('libs/Parse-1.8.2.jar')
      compile files('libs/ParseCrashReporting-1.8.2.jar')
      compile 'com.facebook.android:facebook-android-sdk:3.21.1'
  }
  </code></pre>
  
  <p>And the error I got is:</p>
  
  <blockquote>
    <p>Gradle tasks [:app:assembleDebug]
    :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE
    :app:compileDebugNdk UP-TO-DATE
    :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
    :app:prepareComFacebookAndroidFacebookAndroidSdk3211Library UP-TO-DATE
    :app:prepareDebugDependencies
    :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE
    :app:generateDebugBuildConfig UP-TO-DATE
    :app:generateDebugAssets UP-TO-DATE
    :app:mergeDebugAssets UP-TO-DATE
    :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources UP-TO-DATE
    :app:compileDebugJava
    :app:preDexDebug UP-TO-DATE
    :app:dexDebug
    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define Lbolts/AggregateException;
        at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
        at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
        at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
        at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
        at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
        at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
        at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
        at com.android.dx.command.dexer.Main.run(Main.java:246)
        at com.android.dx.command.dexer.Main.main(Main.java:215)
        at com.android.dx.command.Main.main(Main.java:106)
    Error:Execution failed for task ':app:dexDebug'.
    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_45\bin\java.exe'' finished with non-zero exit value 2
    Information:BUILD FAILED
    Information:Total time: 4.234 secs
    Information:1 error
    Information:0 warnings
    Information:See complete output in console</p>
  </blockquote>
  
  <p>From what I saw in other similar questions, I thought maybe both facebook and parse are trying to compile <code>bolts-android-1.1.4.jar</code> and I commented it out but nothing changed.</p>
  
  <p>I am working on this 8 hours straight now, so any help is appreciated. </p>