Note that there are some explanatory texts on larger screens.

plurals
  1. POGradle for Android AAR Depending Upon AAR, Both In The Same Remote Repository?
    primarykey
    data
    text
    <p>There are a few questions floating around regarding transitive dependencies with AAR files in Gradle:</p> <ul> <li><a href="https://stackoverflow.com/questions/18132581/android-studio-0-2-3-cannot-resolve-transitive-aar-dependencies">Android Studio 0.2.3 cannot resolve transitive aar dependencies</a></li> <li><a href="https://stackoverflow.com/questions/20061652/android-gradle-library-dependency-with-library-dependency-using-nexus">Android Gradle library dependency with library dependency using Nexus</a></li> <li><a href="https://stackoverflow.com/questions/20440110/aar-in-repository-external-dependency-and-noclassdeffounderror">Aar in repository. External dependency and NoClassDefFoundError</a></li> </ul> <p>I too have run into similar problems trying to set up transitive dependencies upon AAR files in a remote repository. I have App A, depending upon Library B, which in turn depends upon Library C. Library C is in a Maven repo. Library B is in the same repo, with a POM that contains the dependency upon Library C. App A has Library B in its dependencies. However, running <strong><code>gradle clean assembleDebug</code></strong> results in: "Module version [Library B] depends on libraries but is not a library itself".</p> <p>I tried putting a bounty on one of those questions, hoping for clarity, with no luck.</p> <p>My guess is that there are two possible sources of the difficulty that I and those with the aforementioned SO question are seeing:</p> <ol> <li><p>Transitive AAR dependencies from a remote repository are simply broken</p></li> <li><p>Transitive AAR dependencies from a remote repository work, but there is something off in our POM files, <code>build.gradle</code> files, or something that is breaking the dependencies</p></li> </ol> <p><strong>The Question</strong>: Does anyone know of an AAR artifact in some public repository (e.g., Maven Central), that depends upon another AAR artifact, also in the same public repository?</p> <p>I am not interested in an AAR that depends upon something in a local repository, like an AAR in Maven Central that depends upon <code>com.android.support:support-v4</code>. In my case, if Library B and Library C are both in my local Maven repository (<code>~/.m2</code>), everything works fine.</p> <p>According to Xav, <a href="https://groups.google.com/forum/#!topic/adt-dev/frugpmBwQt0" rel="nofollow noreferrer">what I am doing should work</a>. Hence, I am hoping that somebody can point me to a working example, so that I can use it to determine where the rest of us may be going wrong.</p> <p><strong>NOTE</strong>: I know that asking for off-site resources is verboten. In this case, I am not looking for the resource in its own right, but as an example of a working configuration, to help debug a non-working configuration. If you have another way of writing up an answer showing a working configuration, that'd be awesome!</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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