Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zabojad opened this issue Feb 7, 2022 · 1 comment

Comments

@zabojad
Copy link

zabojad commented Feb 7, 2022

I have 3 rn modules that uses aar files. They reference it in their own build.gradle file like this:

compile files('libs/mylib.aar')

Until now, it was working fine.

I recently upgraded my app project from react native 0.63 to react native 0.66 and now when I assembleRelease it, I get:

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 workaround the problem by importing those aar files in my app's build.gradle file but that sucks, my app should not be aware of those aar files at all...

Is there any way to use aar files in rn modules now with gradle 4.2+ ?

@vanhungoz
Copy link

you can use local aar by config local maven for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants