I wrote a cameraBarcodeScanner library project built into the aar file. This library has the following dependencies defined in the build.gradle file:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.google.zxing:core:3.2.1' compile 'com.journeyapps:zxing-android-embedded: 3.2.0@aar ' }
I use the library in a test application as follows:
dependencies { compile(name: 'cameraBarcodeScanner-release', ext: 'aar') }
Gradle finds the application and can build it. However, at run time, android cannot find classes located in zxing-android-embedded . It seems to me that gradle does not load library project dependencies. I also tried:
dependencies { compile(name: 'cameraBarcodeScanner-release', ext: 'aar'){ transitive = true }
But that didn't help either. Should I somehow identify library dependencies? How can you use the library and make gradle load your dependencies?
Thanks in advance!
android android-gradle gradle aar gradle-dependencies
battlepope
source share