android-studiomavengradle

Including .aar dependencies using .pom file from local directory


I have a .pom and an .aar file. .pom lists dependencies and I'd like to add all those in Android Studio/Gradle. I've tried adding directory using

{ maven { url = ... } }

and then add an

implementation 'GROUPID:ARTIFACTID:VERSION'

and the .aar gets included, but dependencies do not. Tried adding 'transitive true', but doesn't help either nor does it help adding @pom at the end of implemenntation path like

implementation 'GROUPID:ARTIFACTID:VERSION@pom'

So, what would be the correct way to add both .aar and its dependencies (to an Android project) through a .pom file?


Solution

  • At the end of the day it turns out that I've been misled by the error. It turns out that the library I was trying to run doesn't work on an emulator, but it works on a proper device. Importing an .aar library from a local directory as described in original post works fine.