Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot include Android Library dependency from another Android Library using Gradle
    text
    copied!<p>I'm trying to reference ActionBarSherlock from another Android Library in my project. I'm getting this error:</p> <pre><code>package com.actionbarsherlock.app does not exist </code></pre> <p>Here's my project structure</p> <pre><code>MyApplication |---app \---libraries |---ActionBarSherlock |---AndroidCommon \---AndroidUtils </code></pre> <p>And here's my <strong>settings.gradle</strong></p> <pre><code>// App include ':app' // Libraries include ':libraries:ActionBarSherlock:actionbarsherlock' include ':libraries:AndroidCommon' include ':libraries:AndroidUtils' </code></pre> <p>Here's the <strong>build.gradle</strong> for ABS</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:13.0.0' } android { compileSdkVersion 17 buildToolsVersion '17.0.0' sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } </code></pre> <p>And the <strong>build.gradle</strong> for AndroidCommon</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:13.0.0' compile project(':libraries:ActionBarSherlock:actionbarsherlock') compile project(':libraries:AndroidUtils') } android { compileSdkVersion 17 buildToolsVersion '17.0.0' } </code></pre> <p>Is this setup not supported, or am I doing something wrong? ActionBarSherlock and AndroidUtils build just fine with Gradle. It's only when I try to reference those from AndroidCommon that it fails.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload