how to generate android aar

Godot Version

4.7.2 stable arch

Question

I try to understand for a while now how i can export a project to an .aar file

It look like things looks verry confusing.
there is no option for exporting into aar (only apk and aab)

So i’ve clone the demo project from GitHub - m4gr3d/Godot-Android-Samples: Collection of Godot Android plugins · GitHub
But this is even more confusing.

I have a preset that is missing things :

I cannot hit projcet/install android build template :

while i have installed every android templates

so there is this merge request that add the aar option for the future godot 4.8 :

but this does not tell how this i suppose to works (the documentation looks very unclear)

It won’t be available until Godot 4.8. Once it releases you’ll be able to select AAR in the export options.

You can test it in the Godot 4.8-beta1 if you want:

It’s strange because a lot of pages give the impression that this option has been available for a very long time.

and also this projcet in godot 4.6

Godot already supports using AAR plugins and exports the engine as an AAR so you can embed it into another app. You can read more here:

What you are asking is exporting the project as an AAR which is supported in Godot 4.8

the documentation mention that the engine ad fragment does not support automatic rotation and resizing?

Can we manually rotate and resize it ?