title: Android Studio and android.support.v4.app.Fragment: cannot resolve symbol
body: <p>I am trying out Android Studio instead of Eclipse. I install it and then start a completely new project and follow the wizard. I add no code of my own.</p>
  <p>Then, I right-click to create a new component, a new Fragment:</p>
  <p><img src="https://i.stack.imgur.com/JfdGx.png" alt="enter image description here" /></p>
  <p>and choose a new fragment:</p>
  <p><img src="https://i.stack.imgur.com/Y119h.png" alt="enter image description here" /></p>
  <p>and as soon as I do, I see compile errors:</p>
  <p><img src="https://i.stack.imgur.com/X1Rlj.png" alt="enter image description here" /></p>
  <p>... so I start googling and find out that <a href="https://developer.android.com/tools/support-library/setup.html" rel="nofollow noreferrer">I need to install and reference support library 4</a>, and that I do. When I check the build.gradle (whatever that is, new to me coming from Eclipse), I see:</p>
  <p><img src="https://i.stack.imgur.com/UFDBl.png" alt="enter image description here" /></p>
  <p>but I change that to</p>
  <p><img src="https://i.stack.imgur.com/rx5RF.png" alt="enter image description here" /></p>
  <p>because they said so <a href="https://developer.android.com/tools/support-library/setup.html" rel="nofollow noreferrer">here</a>. After recompiling and all that, the error is still there. I then reference the .jar-file directly, like this:</p>
  <p><img src="https://i.stack.imgur.com/VqYj5.png" alt="enter image description here" /></p>
  <p>and again do recompile etc, but that doesn't help either.</p>
  <p>This behaviour seems very strange to me. What am I missing here? This is the SDK Manager view:</p>
  <p><img src="https://i.stack.imgur.com/rNEM3.png" alt="enter image description here" /></p>