Stefan Maimon
Stefan Maimon

Reputation: 233

How to insert github source code to my project

I'm new at GitHub. I found a library that I want to use in my Android project (Glide), but I don't know how. After downloading the source code I'm stuck with a zip folder that I don't know how to import it into my project. I'm working with Android Studio.

Any help? Thanks.

Upvotes: 1

Views: 1272

Answers (1)

Mike
Mike

Reputation: 4570

Unzip the downloaded project. Open YOUR project in Android studio. Click File -> Import module. Add this module as a dependency to your project. You should be good to go.

[EDIT]

BUT, since Glide has gradle/maven support, I can just simply modify your project's build.gradle file and add the following lines to the dependencies group:

compile 'com.github.bumptech.glide:glide:3.3.+'
compile 'com.android.support:support-v4:19.0.0' // You might need to increase the version numbers if the libraries have never versions

Upvotes: 2

Related Questions