Skip to content

Local .aar is not supported #25

@danielhalim92

Description

@danielhalim92

Hi,

We have a lib module to add a local .aar file as a dependency, the build.gradle looks like this:

configurations.maybeCreate('default')
artifacts.add('default', file('your_aar_name.aar'))

When i ran the analysis, It threw an error my libs not supported, seems because it does not match any variant.

I tried to change the approach by including the .aar directly on the app module, and depends it using this way:
implementation fileTree(dir: 'libs', include: ['*.aar']).

Unfortunately I got another error:

task: bundleGeneralDebugAar
> Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR.

Any workaround for it?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions