So, here's the thing, I have a .aar file, and when i add it as a dependency as follows:
compile('com.foo:bar:1.0.0@aar')
It generates the following file:
build > intermediates > exploded-aar > com.foo > bar > bar-1.0.0
which contains the classes.jar, sources, etc.
However, it SHOULD be doing the following:
build > intermediates > exploded-aar > com.foo > bar > 1.0.0
Does anyone have any clue as to why my aar isn't being imported correctly?
This is a problem, as the following error occurs when building the gradle:
com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: /build/intermediates/exploded-aar/com.foo/bar/1.0.0/AndroidManifest.xml (No such file or directory)
However, it is clearly visible in the bar-1.0.0
directory.
Edit: more info
Nothing works.
I wasn't going to answer my own question but I will now that I've received a few votes.
It turns out, the minSDK that was defined in my build.gradle wasn't installed.
Once I installed the proper SDKs, everything worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With