title: Android application with Android library project as external module
body: <p>In my Android application project I want to use <a href="https://github.com/Bearded-Hen/Android-Bootstrap/tree/master/AndroidBootstrap" rel="nofollow">https://github.com/Bearded-Hen/Android-Bootstrap/tree/master/AndroidBootstrap</a> as a dependency (I use Android Studio 0.8.8).</p>
  
  <p>This is my settings.gradle</p>
  
  <pre><code>include ':gui', ':client', ':Android-Bootstrap'
  project(':Android-Bootstrap').projectDir=new File('/abs/path/to/Android-Bootstrap/AndroidBootstrap')
  </code></pre>
  
  <p>And my gui/build.gradle</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.13.3'
      }
  }
  apply plugin: 'com.android.application'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19.1"
  
      defaultConfig {
          minSdkVersion 10
          targetSdkVersion 19
      }
  
  ...
  skipped
  ...
  }
  
  dependencies {
      ...skipped...
      compile 'com.android.support:appcompat-v7:19.1.0'
      ...skipped...
      compile project(':client')
      compile project(':AndroidBootstrap')
  }
  </code></pre>
  
  <p>When I gradle sync I get::</p>
  
  <pre><code>Error:(1, 0) Plugin with id 'android-library' not found.
  </code></pre>
  
  <p>If I remove</p>
  
  <pre><code>project(':Android-Bootstrap').projectDir=new File('/abs/path/to/Android-Bootstrap/AndroidBootstrap')
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Error:(44, 0) Project with path ':AndroidBootstrap' could not be found in project ':gui'.
  </code></pre>
  
  <p>If I change <a href="https://github.com/Bearded-Hen/Android-Bootstrap/blob/master/AndroidBootstrap/build.gradle" rel="nofollow">https://github.com/Bearded-Hen/Android-Bootstrap/blob/master/AndroidBootstrap/build.gradle</a> with</p>
  
  <pre><code>apply plugin: 'com.android.library'
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Error:(1, 0) Plugin with id 'com.android.library' not found.
  </code></pre>
  
  <p>If I add to <a href="https://github.com/Bearded-Hen/Android-Bootstrap/blob/master/AndroidBootstrap/build.gradle" rel="nofollow">https://github.com/Bearded-Hen/Android-Bootstrap/blob/master/AndroidBootstrap/build.gradle</a></p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.13.3'
      }
  }
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>Error:(44, 0) Project with path ':AndroidBootstrap' could not be found in project ':gui'.
  </code></pre>
  
  <p>How to fix it? I want this module be external, no import and copying into main project. Why fixing gradle plugin dependency leads to path not found issue?</p>