title: Include apk module as dependency in android studio
body: <p>I have two modules in my project:</p>
  
  <ol>
  <li>app</li>
  <li>app_list</li>
  </ol>
  
  <p>Both modules have java and res. <code>app_list</code> has some activities that I want to launch in <code>app</code>.</p>
  
  <p>In Eclipse, I had app_list as dependency library and I was able to launch activity of <code>app_list</code>. In Android Studio, when I added <code>app_list</code> as dependency, it says:</p>
  
  <pre><code>"Error:A problem occurred configuring project ':app'.
  &gt; Dependency NewMathBuzz:app_list:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: &lt;home&gt;/NewMathBuzz/app_list/build/outputs/apk/app_list-release-unsigned.apk
  "
  </code></pre>
  
  <p>app > build.gradle is as below:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          applicationId "com.mass.mathbuzz"
          minSdkVersion 7
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile project(':app_list')
      compile fileTree(dir: 'libs', include: ['*.jar'])
  }
  </code></pre>
  
  <p>app_list > build.gradle is as below:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          minSdkVersion 7
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.mcxiaoke.volley:library:1.0.18'
      compile 'com.android.support:appcompat-v7:22.0.0'
  }
  </code></pre>
  
  <p>Could someone help me with this?</p>