title: Trouble Importing android-support-v4.jar
body: <p>I am trying to do the tutorial Sample Code from the <a href="https://developers.google.com/maps/documentation/android/intro" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android/intro</a> page.I import the google-play-services_lib just fine, then I import the /extras/google/google_play_services/samples/maps</p>
  <p>At this point I have 2 errors:</p>
  <p><code>The type android.support.v4.app.Fragment cannot be resolved.</code> <code>It is indirectly referenced from required .class files  RetainMapActivity.java  /MainActivity/src/com/example/mapdemo   line 45 Java Problem</code></p>
  <pre><code>The project was not built since its build path is incomplete.
  
   Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project  MainActivity        Unknown Java Problem
  </code></pre>
  <p>I figured this was because I did not yet complete all the steps and continued. When I add android-support-v4.jar via the method in the sample code, I get over 100 errors, all of which look like this (but with different line #s and paths):</p>
  <pre><code>R cannot be resolved to a variable  BasicMapActivity.java   /MainActivity/src/com/example/mapdemo   line 42 Java Problem
  </code></pre>
  <p>The only deviation from the tutorial that I took was my android-support-v4.jar was located in sdk\extras\android\support\v4</p>
  <p>If there is anything you think I should try, or a bug that you know of, please tell me. Also if there is anymore helpful information I can give, just say so.</p>
  <p>Edit:
  I looked more closely at the code, and there was no R.java in the gen folder. Might explain why nothing could find it.</p>