In my Android Studio Gradle project I use several libraries, whereas one library should use a local AAR file as dependency. I used the popular solution to include the AAR file as dependency into my library project:
flatDir { dirs 'libs' } compile(name: 'aar-library', ext: 'aar') When I now try to sync I get the error message
Failed to resolve: dependency 'aar-library'
in my main project even though I'm not using / referencing the AAR file there. If I just copy the AAR file into the libs folder of my main project too it works. Any idea?