I created two Android Studio applications. One of them is aar library. I used this aar library in second application. I added aar library by using File->New->New Module->Import
I had the same issue and solved it very quickly doing the following:
This is for an AAR included as a project (which is how it is included when you use File->New->New Module...->Import .JAR/.AAR Package).