Android Studio Gradle Configuration with name 'default' not found

In my case, after compiling with gradle tasks --info, the log was there :

Evaluating project ':libraries:VolleyLibrary' using empty build file.

So it failed to find build.gradle file of the library. Reason is the folder structure.

It was

-libraries
--volley
---VolleyLibrary

It is supposed to be

-libraries
--VolleyLibrary

I forgot to pull all submodules. So my

compile project(':something')

could not be resolved.

Solution

git submodule update --init