fat-aar-android icon indicating copy to clipboard operation
fat-aar-android copied to clipboard

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

Open JahurMohammed opened this issue 4 years ago • 5 comments

Describe the issue A clear and detailed description of what the issue is. embed project(path: ':signature-pad', configuration: 'default') embed project(path: ':msdk', configuration: 'default') embed (name: 'lib1-release', ext: 'aar') embed (name: 'lib2_1.5.5', ext: 'aar') embed (name:'lib3 -1.55', ext: 'aar') preprodImplementation project(":signature-pad") preprodImplementation project(":msdk")

Note: msdklib contain lib1-release, lib2_1.5.5, 'lib3 -1.55' msdk2lib contain msdklib . while trying to create msdk2lib.aar getting below issue

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 :msdklib project caused this error

Build Environment

  • Operating System: [e.g. WindowOS]
  • Gradle Plugin Version: [e.g. 4.2.0]
  • Gradle Version: [e.g. 6.5]
  • Fat-aar Version: [e.g. 1.3.3]

JahurMohammed avatar May 20 '21 05:05 JahurMohammed

Im also having the same issue

NituCresta avatar Jun 07 '21 03:06 NituCresta

any solutions on above query ?

sssvrock avatar Jun 17 '21 11:06 sssvrock

me too

chinaTLJ avatar Jun 29 '21 01:06 chinaTLJ

You need to add the local libs dir to your repositories in the project gradle file:

repositories {
    flatDir { dirs 'libs' }
}

gtcompscientist avatar Nov 02 '21 19:11 gtcompscientist

me too. any solutions on above query ?

qinghua-pactera avatar Jan 25 '22 05:01 qinghua-pactera