title: Android Studio not detecting support libraries on Compilation
body: <p>Since Android Studio is going to be default IDE for Android Development, I decided to migrate my existing project into Android-studio. The project stucture seems different and the hierarchy of folders in my Project is as follows:</p>
  <pre><code>Complete Project
   -&gt;.idea
   -&gt; build
   -&gt; Facebook SDK
   -&gt; MainProject
   -&gt; ... (Other Libraries)
   build.gradle
   local.properties
   settings.gradle
   ...
  External Libraries
   -&gt; Android API 8 Platform
   -&gt; Android API 18 Platform
   -&gt; Android API 19 Platform
   -&gt; 1.7 Java
   -&gt; support-v4-19.1.0
  </code></pre>
  <p>My MainProject has a libs folder which contains different jars used within the project. It surprisingly does not contain the android-support-v4 jar which was present in my eclipse project. So, it seems that the external Libraries folder at the root must take care of it.</p>
  <p>But after import, when I tried to compile the project started throwing &quot;Symbol not found error&quot; for Certain Classes all relating to android support library.</p>
  <p>For Eg: The auto complete in Android Studio gives me suggestion for NotificaitonCompat from android.support.v4.app.NotificationCompat, but when I try to compile my Project Module it says</p>
  <p><strong>Error:(17, 30) error: cannot find symbol class NotificationCompat Error:Execution failed for task ':app:compileDebugJava'.&gt; Compilation failed; see the compiler error output for details.</strong></p>
  <p>This happens in many other classes too for the same support library. I tried to insert a jar and changed the same in the build.gradle for the MainProject, but the error persists.</p>
  <p>I even tried restarting and building the project again, but nothing changed.</p>
  <p>EDIT:
  I am attaching the Gradle file inside the MainProject</p>
  <h1>build.gradle in MainProject Module</h1>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 19
  buildToolsVersion &quot;21.1.2&quot;
  
  defaultConfig {
      applicationId &quot;package.app&quot;
      minSdkVersion 8
      targetSdkVersion 19
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
      }
  }
  }
  
  configurations {
  all*.exclude group: 'com.android.support', module: 'support-v4'
  }
  
  dependencies {
  compile project(':facebookSDK')
  compile project(':library')
  compile project(':volley')
  compile 'com.google.android.gms:play-services:+'
  compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
  compile 'com.android.support:support-v4:19.1.0'
  compile files('libs/FlurryAnalytics_3.3.3.jar')
  compile files('libs/universal-image-loader-1.8.4.jar')
  ....
  }
  </code></pre>