title: I'm having issues importing ViewPager with Android Studio?
body: <p>I'm trying to import a project into Android Studio. I'm getting weird errors. </p>
  
  <pre><code>Information:java: Errors occurred while compiling module 'library'
  Information:Compilation completed with 100 errors and 5 warnings in 26 sec
  Error:(31, 31) java: package android.support.v4.view does not exist
  /Users/clxxxii/Downloads/JakeWharton-ViewPagerIndicator-8cd549f/library/src/com/viewpagerindicator/TitlePageIndicator.java
  </code></pre>
  
  <p>In the class TitlePageIndicator, these imports aren't working.</p>
  
  <pre><code>import android.support.v4.view.MotionEventCompat;
  import android.support.v4.view.ViewConfigurationCompat;
  import android.support.v4.view.ViewPager;
  </code></pre>
  
  <p>Android studio recognizes android.support.v4.view. but not ViewPager, ViewConfigurationCompat nor MotionEventCompat. Do you know what the problem could be?</p>
  
  <p>///////</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      compile project(':android-sdks:extras:google:google_play_services:libproject:google-play-services_lib')
      compile project(':Downloads:Android Group Chat App using Sockets:android-websockets-master')
      compile project(':Downloads:JakeWharton-ViewPagerIndicator-8cd549f:library')
      compile project(':Downloads:BaseGameUtils')
      compile project(':Downloads:polljoy-android-master:PolljoySDK')
  }
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
  
          // Move the tests to tests/java, tests/res, etc...
          instrumentTest.setRoot('tests')
  
          // Move the build types to build-types/&lt;type&gt;
          // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
          // This moves them out of them default location under src/&lt;type&gt;/... which would
          // conflict with src/ being used by the main source set.
          // Adding new build types or product flavors should be accompanied
          // by a similar customization.
          debug.setRoot('build-types/debug')
          release.setRoot('build-types/release')
      }
  }
  </code></pre>