I have a fairly latest version of android studio, I have created a module under a project which is basically supposed to be a library, when I build it, it creates an \".aar\
You can just simply unzip the aar file to get the separated pieces of files.
aar