If you are using Android Studio:
You can import the project as a module and change the following in the build.gradle
file of the imported module.
Change apply plugin: com.android.application
to apply plugin: com.android.library
remove applicationId
and set minSdkVersion
to match your project minSdkVersion.
And in your project build.gradle
file compile project(':MaterialDesignLibrary')
, where MaterialDesignLibrary
is the name of your library project or you can import the module by File -> Project Structure -> Select your project under Modules -> Dependencies -> Click on + to add a module.