I cannot help with the AAR question, but may @Ken_Kousen, author of Gradle Recipes for Android, will know