I have added the .aar files to libs folder in the sub-project. And have given the repositories as:
repositories { mavenCentral() mavenLocal() flatDir {