I have added the .aar files to libs folder in the sub-project. And have given the repositories as:
repositories {
mavenCentral()
mavenLocal()
flatDir {
In the repositories of your module: app
repositories {
flatDir {
dirs 'libs'
}
}
Add the following in the dependencies of your module: app In the case that your have both a JAR and an AAR file, do the following.
dependencies
{
implementation (name: '***library name***', ext: 'aar')
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'], )
}