Skip to content

Direct local .aar file dependencies are not supported when building an AAR. #221

@wilsolutions

Description

@wilsolutions

Hi, please, I've create a react native module that includes 2 external libraries (.aar).

It builds fine, but when I ran npx react-native run-android example --deviceId=the_device it returns the following error:

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. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error).

I'm including the .aar in the build.gradle:
implementation files('lovely/cutelib.aar')

And then in the settings.gradle i do:
include ':cutelib'

Note: it will run fine into Android device if I don't pass the --deviceId flag :P

Any thoughts?
ty

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions