AChartEngine and Android Studio

I need to create an application that makes extensive use of charts. While reading the Internet, I chose achartengine, which seems to have everything I need.

I downloaded the jar file, I connected the libs folder, I selected "add to library" and I have lunch gradule clean. Result in sources where I do import org.achartengine.xxxx I always returned an error that does not allow characters.

Do you have any suggestions? thanks Andrea

+6
source share
2 answers

I can use this library in my Android Studio project, this section explains how to add an AChartEngine report to your project.

What I've done:

  • The following are added for building a build.gradle project (one of the project root):

    allprojects { repositories { ... maven { url "https://repository-achartengine.forge.cloudbees.com/snapshot/" } } } 
  • For each module that uses the library, add it to your build.gradle (you can put this in the top-level build-level if it should be included in all modules):

     dependencies { ... compile group: 'org.achartengine', name: 'achartengine', version: '1.2.0' } 

Now I can use the library in the project, I see that the classes in the pop-up windows of the code help and start as successful.

+23
source

It seems that the new version (1.2.0) is not available for download on the http://www.achartengine.org/ site. and why the gradle / maven method does not work (or the snapshot file is deleted). I managed to use and add it to my project by downloading the jar file from here: https://github.com/ddanny/achartengine/files/460139/achartengine-1.2.0.zip

+2
source

Source: https://habr.com/ru/post/973030/


All Articles