Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Everything was fine, but after the next build I got some errors.

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

implementation files('libs/lib1.aar')

implementation files('libs/lib2.aar')

I don't have the source for these libraries, so I cannot connect them as modules. How can I solve those problems?

Thank you in davance.

like image 970
Andrew Efremov Avatar asked Nov 30 '25 14:11

Andrew Efremov


1 Answers

I got this error when I used the "Rebuild Project" option in AndroidStudio. When I used the "Build Project" options instead the error disappeared

like image 67
UnknownFrequency Avatar answered Dec 04 '25 01:12

UnknownFrequency



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!