How to include GitHut library in my project (Android Studio)

442 Views Asked by At

I am trying to add this library to my project because I want to change something in a class there. That is why I adding it as a dependencies in my gradile setting is not enough.

I know that in the library it says "If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.". But what does that mean, should I copy all files and put them in my libs folder ?

1

There are 1 best solutions below

5
On BEST ANSWER

Quoting the documentation:

If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.

Step #1: Download the project, whether via the ZIP file that GitHub gives you or by using git to clone the repository

Step #2: Move the MaterialDesign/ directory into your project directory, as a peer of your existing app/ module

Step #3: Modify your settings.gradle in your project directory to include :MaterialDesign in the list of modules to build

Step #4: In your app module's build.gradle file, add compile project(':MaterialDesign') to your dependencies