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