Simply import the Android library project as a module and in Build.gradle.
Apply plugin: 'com.android.library'
After that, follow these steps:
- Right click on Module & select open Module settings
- Select dependencies, click on +, select library dependencies, and add the previously imported module.