I have a multi module app and I want to implement a aar file on a secondary module. I app module works fine if I implement the aar but I need on my secondary module.
But I'm receiving this 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). The following direct local .aar file dependencies of the :features:second-module project caused this error: D:\user\my-app\features\second-module\libs\sdk-v3.0.1.aar
I'm adding libs on flatDir:
repositories {
flatDir {
dirs 'libs'
}
}
And this is how I implementing the SDK:
implementation fileTree(include: ['sdk-v3.0.1.aar'], dir: 'libs' )