AChartEngine And Android Studio

跟風遠走 提交于 2019-11-28 11:23:04
Eugene

I am able to use this library in my Android Studio project, this topic explains how to add AChartEngine repo to your project.

What I did:

  1. Added following to project-wide build.gradle (one from the project root):

    allprojects {
        repositories {
            ...
            maven {
                url "https://repository-achartengine.forge.cloudbees.com/snapshot/"
            }
        }
    }
    
  2. For every module that uses the library, add this to its build.gradle (you may put this to the top-level build.gradle 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 the classes in code assist popups and build runs as succeeds.

It seems like the new version (1.2.0) is not available for download anymore in the http://www.achartengine.org/ site. and that's why the gradle/maven method doesn't work (or the snapshot file was removed). I succeeded using and adding it to my project by downloading the jar file from here: https://github.com/ddanny/achartengine/files/460139/achartengine-1.2.0.zip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!