title: Android Studio library "error: package does not exist"
body: <p>I have created Android library as Android Studio module. Added as dependency to my root module. While coding I can import any class from library package but while I'm trying run the application I'm getting an error <code>package some.mylibrary.project does not exist</code>.</p>
  
  <p><strong>build.gradle</strong> root module</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.12.+'
      }
  }
  apply plugin: 'com.android.application'
  
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      compile 'com.android.support:appcompat-v7:20.+'
      compile 'com.google.android.gms:play-services:5.+'
      compile project(':libraries:mylibrary')
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "20.0.0"
  
      lintOptions {
          disable 'InvalidPackage'
          checkReleaseBuilds false
          abortOnError false
      }
  
      ***
  }
  </code></pre>
  
  <p><strong>build.gradle</strong> library module</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.12.+'
      }
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'idea'
  
  android {
      compileSdkVersion 17
      buildToolsVersion "20.0.0"
  
       *****    
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
  }
  </code></pre>
  
  <p><strong>settings.gradle</strong> </p>
  
  <pre><code>include ':libraries:mylibrary'
  </code></pre>
  
  <p>P.S. I have to mention that the project was exported from Eclipse IDE so the project structure is different from default one.</p>