6

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

  • Tested on 5 machines. All running AS 0.8.9, fresh install, fresh clone.
  • Jdk 1.6 and 1.7 tested
  • --refresh-dependencies called to make sure any changes have been collected

Nothing works.

6
  • Why does it matter what filename the build system uses in its intermediate output? Commented Sep 15, 2014 at 19:51
  • Updated question to explain why Commented Sep 15, 2014 at 19:56
  • Any chance you're running a very old version of the android-gradle plugin somewhere? I vaguely recall it used to unpack into the first naming convention for an intermediate directory, but that was a long time ago. I'm confused, though, because manifest merging is a more modern thing. I'm wondering if somehow you could have two versions of the plugin running. Commented Sep 15, 2014 at 22:33
  • How would I go about checking that? This is what is happening just from running a gradle sync on a brand new, fresh download of AS 0.8.9 and the newest gradle. Commented Sep 15, 2014 at 22:39
  • Attach your build files to your question. Commented Sep 15, 2014 at 23:08

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.