title: Android Facebook SDK - android.support-v4 issue (class android.support.v4.app.Fragment not found)
body: <p>I'm having trouble getting the Facebook SDK (v3.7) to work in my Android Intellij project.</p>
  
  <p>I followed <a href="https://stackoverflow.com/a/14732898/4048490">these steps</a> to add the Facebook library as a new module to my project , but I keep getting this error:</p>
  
  <blockquote>
    <p>java: cannot access android.support.v4.app.Fragment
          class file for android.support.v4.app.Fragment not found</p>
  </blockquote>
  
  <p>Here is a screenshot of my module's dependencies:</p>
  
  <p><img src="https://i.stack.imgur.com/MVGWo.png" alt=""></p>
  
  <p>And this is a screenshot of the Facebook module dependencies:
  <img src="https://i.stack.imgur.com/EgGrD.png" alt=""></p>
  
  <p>When I add the v4 support library to my own module, I get a different error:</p>
  
  <pre><code>Android Dex: [FunnyGific] com.android.dex.DexException: Multiple dex files define Lcom/facebook/AccessToken$1;
  </code></pre>
  
  <p>I tried using the <code>android-support-v4.jar</code> I found in the <code>facebook-android-sdk-3.7/facebook/libs</code> folder, also tried to import it via Maven and I keep getting the same errors. Any ideas here?</p>
  
  <p>The <em>only</em> situation I could get it to work is by adding the Facebook mvn repository, but even in this case I'm getting some strange exception when I try to show the Facebook LoginButton (<code>java.lang.ClassNotFoundException: com.facebook.android.R$color</code>):</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;fr.avianey&lt;/groupId&gt;
      &lt;artifactId&gt;facebook-android-api&lt;/artifactId&gt;
      &lt;version&gt;3.8.0&lt;/version&gt;
      &lt;type&gt;aar&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Running out of ideas, would love some help to get this working.</p>