This is the recommended way if you use Android Studio / Gradle. You can require the library from the Maven Central Repository.
Add that line to your build.gradle file under your app directory into the dependencies block:
Now you can proceed with creating a simple line graph.
As an alternative you can download the .jar file and copy it into the libs folder of your project.