Error: Configuration with name 'default' not found in Android Studio
Add your library folder in your root location of your project and copy all the library files there. For ex YourProject/library then sync it and rest things seems OK to me.
Try:
git submodule init
git submodule update
This is probably a rare case, but for me a library that was included in the settings.gradle was not there.
E.g. I had: include ':libraries:Android-RateThisApp:library'
in my settings.gradle
but the folder Android-RateThisApp was empty. As soon as I checked out this submodule the gradle sync succeed.