title: Android Studio : Config Gradle file for library project
body: <p>I have an Android Project, and I want to create a sub-library (just another Android Project) as library for this one. </p>
  
  <p>Here is my Structure:</p>
  
  <pre><code>Project/
          settings.gradle
          build.gradle
          /ProjectA
          /ProjectA/build.gradle
          /ProjectA/libs
          /ProjectA/libs/ProjectB
          /ProjectA/libs/ProjectB/build.gradle
  </code></pre>
  
  <p><code>ProjectA</code> is my main project. I do as following. In <code>setting.gradle</code>. I add:</p>
  
  <pre><code>include ':ProjectA'
  include ':ProjectA:libs:ProjectB'
  </code></pre>
  
  <p>after that. I copy all information of <code>ProjectA/build.gradle</code> into <code>ProjectB/build.gradle</code> content of file is:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1.1"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 18
      }
  
      buildTypes {
          debug {
              packageNameSuffix ".debug"
          }
      }
  }
  </code></pre>
  
  <p>After that, I change <code>ProjectA/build.gradle</code>. Add this line: <code>compile projects(:libs:projectB)</code> to dependencies. After that I receive error : </p>
  
  <pre><code>Project with path ':libs:ProjectB' could not be found in project ':ProjectA'
  </code></pre>
  
  <p>Please help me how to configure for multiply project in Android Studio.</p>
  
  <p>Thanks :)</p>