How to integrate GraphView into my project?

So, I was looking for a graphical solution for my application, and I came across GraphView .

I searched github and source files and I cannot find integration guide. Maybe it is right in front of my face, but I do not see it anywhere.

I have never commented on elses code before, so if anyone could give me a brief description of how to integrate GraphView with my current project, I would really appreciate it.

+6
source share
4 answers

Option 1:

  • get the jar library from here .
  • copy this jar to the /libs folder in the project where you want to use GraphView .
  • use it.

Option 2:

  • Get a project from github using git :

    • go to your favorite directory using git bash
    • execute from git git clone git://github.com/jjoe64/GraphView.git graphView
    • in Eclipse File β†’ Import... β†’ Android - / Existing Android Code Into Project (use Browse to go to the GraphView folder from your favorite folder of the previous step)
    • right click on the project that will use GraphView Properties Android at the bottom ( Library area) using Add... to select GraphView
    • use it
+7
source

GraphView was added to Maven Central, so integration with Studio Studio is now even easier. Just add the following to your build.gradle file and you do not need to download .jar.

 dependencies { 'com.jjoe64:graphview:3.1.3' } 
+5
source

in Android Studio add this line to the build.gradle file:

 dependencies { compile files('libs/graphview-3.1.jar') } 

And do not forget to click "Synchronize the project with Gradle files".

+1
source

Answer using Android Studio:
- download .jar from from this link

-add jar file for project-> app-> libs

-open build.gradle and under the dependencies write:

 dependencies { compile files('libs/graphview-3.1.jar') } 

after this sync project

+1
source

All Articles