title: Why won't Android Studio find my resources?
body: <p>Android Studio code inspection seems to not find any of the project-specific resources. </p>
  
  <p>For example my styles.xml</p>
  
  <pre><code>&lt;resources&gt;
    &lt;style name="AppBaseTheme" parent="Holo.Theme.Light.DarkActionBar"&gt;
    &lt;/style&gt;
  
    &lt;!-- Application theme. --&gt;
    &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
    &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Marks the second AppBaseTheme red and says: "Cannot resolve symbol 'AppBaseTheme'".</p>
  
  <p>The app compiles and runs without problems but I don't have any code-completion on resources. The inspection seems to find the ActionBarSherlock resources and HoloEverywhere resources (e.g. Holo.Theme.Light.DarkActionBar, auto-complete works too) though.</p>
  
  <p>build.gradle of the app (sub)project</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4.1'
      }
  }
  apply plugin: 'android'
  
  dependencies {
      //compile files('libs/android-support-v4.jar')
      compile project(':abs-library')
      compile project(':he-library')
      compile project(':he-addons:slider')
      compile project(':he-addons:preferences')
      // using a custom repo here
      compile 'com.google.android:support-v4:r13'
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "17.0.0"
  
      defaultConfig {
          minSdkVersion 7
          targetSdkVersion 17
      }
  
      sourceSets {
          main {
              manifest.srcFile 'src/main/AndroidManifest.xml'
              java.srcDirs = ['src/main/java']
              // abs-res, he-res are symlinks to ../abs-library/res
              // and ../he-library/res 
              res.srcDirs = ['src/main/res', 'abs-res', 'he-res']
          }
      }
  }
  </code></pre>