1

My AAR includes a picasso library, but in my java code can't find picasso.

Here is my build.gradle: enter image description here

enter image description here

and here is my multi-image-selector AAR gradle: enter image description here

Gabriele Mariotti
  • 250,295
  • 77
  • 670
  • 690
Cong Chen
  • 49
  • 7

3 Answers3

0

The aar file doesn't contain the nested dependencies and doesn't have a pom file which describes the dependencies used by the library.

It means that, if you are importing a aar file using a flatDir repo you have to specify the dependencies also in your project.

In your case you have to add in your app (not the library):

compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
Gabriele Mariotti
  • 250,295
  • 77
  • 670
  • 690
0

Why you not using only

compile 'com.squareup.picasso:picasso:2.5.2'
Tran Vinh Quang
  • 585
  • 2
  • 9
  • 30
0

If you use the gradle maven plugin to deploy the aar to a local repo, then you can get transitive dependencies to work. Here's how to do that:

Community
  • 1
  • 1
Stan Kurdziel
  • 5,108
  • 1
  • 38
  • 40