First, create your Module
. You can do that using the default Android Studio Module Wizard (File -> New -> New Module
), select Android Library, give it a Name and a package name, and finish.
After that you will see that nothing happens. Open the side Gradle Projects Section
(should be somewhere on the right panel)
You should see something like this:
Expand your module gradle and run the Run Configurations
task.
After that refresh the content and refresh the project structure.
It should work now.