Hello guys!
I have an
.aar
library, which is located on the project level:
libs/lib.aar
. I declare it in an Android Library module in the following manner:
implementation files('libs/lib.aar')
After updating to the latest Android Gradle Plugin:
-classpath 'com.android.tools.build:gradle:3.5.3'
+classpath 'com.android.tools.build:gradle:7.0.0-beta02'
I got this error message:
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 only thing I could find on Stackoverflow was the following:
https://stackoverflow.com/questions/60878599/error-building-android-library-direct-local-aar-file-dependencies-are-not-supp
But these solutions seem outdated.
Following official documentation
here didn’t help either.
Did someone encounter this issue? Need help! 🆘