title: Gradle cannot find symbol class in Android Studio project
body: <p>Gradle has trouble resolving a dependency in an Android Studio project. I have a library that has a dependency to a java module called "common". I have the dependency speficied in the buld.gradle (see below), however, I still get "cannot find symbol MyClass" when building. How can I fix this?</p>
  
  <p>The line in error is the import that references the package in "common". </p>
  
  <p>Building works fine with maven, but not with gradle. </p>
  
  <p>This is the build.gradle of my lib. </p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 17
      buildToolsVersion "22.0.1"
  
  
      defaultConfig {
          minSdkVersion 17
          targetSdkVersion 17
      }
  
      buildTypes {
          release {
              minifyEnabled false
              //proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile project(':common')
  }
  </code></pre>