Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    The "api fileTree(dir: 'libs', include: ['*.aar])" worked great. It didn't work if I used "implementation" instead of "api". I never could get Victor Ude's solution to work with multiple aar's. One additional insight: if you are using resources (such as layouts) make sure that the aar(s) you link in doesn't contain a resource with the same name as in your apk. It'll may give you an error that it can't find one of the id's in the layout. The issue is that it uses the wrong namespace for id in the aar layout. Commented Mar 28, 2019 at 17:17
  • 1
    In my case the 'implementation fileTree' line worked perfectly. It was, actually, the only solution I tried that actually worked. Commented Jan 20, 2021 at 15:24