How to publish aar through Central Portal

https://central.sonatype.org/publish/publish-portal-maven/
The link above is a guide on how to publish jar. We have aar built by CI that needs to be published, but we always encounter problems. After changing the packaging in the pom.xml file to aar, an error is reported:
Unknown packaging: aar @ line 10, column 16
How to fix this, or give us a sample project for publishing aar.