Consuming an aar /2

Skip to first unread message

Philippe Riand

Apr 3, 2017, 12:08:45 PM4/3/17
to Maven Android Developers
Not sure if the questions are monitored and must be accepted before showing, but looks like the one I posted this morning is not there. So I'm reposting it:-)

So I added the following dependency to my project:

The library is an aar, so it cannot find it without the type explicitly specified. Now, the library itself has other aar dependencies but its pom.xml is missing the type:

It works perfectly well with the Android studio as gradle automatically picks them up as aar. But the Maven plugin fails as it looks for jar file:
The following artifacts could not be resolved:,

Any idea on how this can be fixed without adding the <type> in the the pom.xml of the library?
I tried it in local .me. It worked, but I'm not controlling this as this is an IBM asset.
Seems to be a pretty common case when consuming external libraries
Reply all
Reply to author
0 new messages