title: Add android support library v4 to intellij ide
body: <p>I am trying to use viewpager from android support library v4 in intelli j. Currently, I am using the Android SDK 4.1</p>
  
  <p>I copied <code>android-support-v4.jar</code> to my intellij android project under 'libs'</p>
  
  <p>in the project settings of intellij</p>
  
  <p>I went to <strong>"Modules" => "MyModuleName" => dependencies</strong> tab, and add the android-support-v4.jar, by navigating the path to the libs/ folder under my own project</p>
  
  <p>I checked the 'export' besides this newly added jar file</p>
  
  <p>but I still can't use viewpager in my application.</p>
  
  <p>I get a crash msg like:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxx/com.xxxx.MyActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class android.support.v4.view.ViewPager
  </code></pre>