Installing an aar project in capacitor plugin

I don’t know if someone ever had the necessity or the issue itself, but I have an aar project that I need to use for some AR device, but main problem is that when I install the project in my android plugin, with android studio ofc, I go to build the release and I get an error saying that is not compatible etc, because it cannot find the project, so the project is builded, is in both gradles, it works in develop until I build the release… So I was thinking about doing the same thing as some capacitor native plugins (this way the build has the package always available), but I’m not getting how to do it, and if it’s the right idea or if there is something easier