title: Can't load FragmentManager
body: <p>I tried creating an Android app. using tabs in Android Studio. I ran into the issue where all my fragment imports were causing the error <code>Cannot Resolve Symbol 'FragmentManager'</code>, and anything else associated with fragments within my program. I made sure I was importing the correct support files:</p>
  
  <pre><code>    import android.support.v4.app.Fragment;
      import android.support.v4.app.FragmentActivity;
      import android.support.v4.app.FragmentManager;
      import android.support.v4.app.FragmentPagerAdapter;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/49ker.jpg" alt="Image of Errors"></p>
  
  <p>I checked to make sure I was calling active fragments in my layout files, similar issue explained <a href="https://stackoverflow.com/questions/11838333/why-the-fragment-doesnt-work"><strong>[here]</strong></a>.</p>
  
  <p>I made sure I had the latest Android SDK Build-tools, shown <strong><a href="https://stackoverflow.com/a/16608570/1461021">[here]</a></strong>.</p>
  
  <p>I <a href="https://stackoverflow.com/questions/21212070/sync-project-with-gradle-files"><strong>[re-synced the Gradle Files]</strong></a>.</p>
  
  <pre><code>    Tools &gt; Android &gt; Sync Project with Gradle Files
  </code></pre>
  
  <p>I even imported a pre-made application from the Android Developer guides, <a href="http://developer.android.com/training/implementing-navigation/lateral.html" rel="nofollow noreferrer"><strong>[Creating Swipe Views with Tabs]</strong></a>, and the error was not going away. Which made me think that there was possibly something wrong with Android Studio. I recently updated to  Version 0.8.14 and I noticed the file structure changed a bit, it is now more streamlined. </p>
  
  <p><img src="https://i.stack.imgur.com/u3rIL.jpg" alt="Application Structure"></p>
  
  <p>Which lead me back to poke around within the gradle files. I opened up the build.gradle and verified that there were no issues from the minSdk version and then did one last check on possible errors with Gradle. </p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 15
      buildToolsVersion "20.0.0"
  
      defaultConfig {
          applicationId "app.name"
          minSdkVersion 15
          targetSdkVersion 15
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
  }
  </code></pre>
  
  <p>Check out my answer for the <strong><a href="https://stackoverflow.com/a/26856201/1461021">[solution]</a></strong>.</p>