android achart教程,AChartEngine And Android Studio

可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):

问题:

I have to create an application that makes extensive use of charts. Reading the web I chose achartengine that seems to have everything I need.

I downloaded the jar file, I plugged in the libs folder, I selected "add to library" and I lunch the gradlew clean. Result in the sources where I do the import of org.achartengine.xxxx I always returned the error that fails to resolve symbols .

Do you have suggestions? Thank you Andrea

回答1:

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: Added following to project-wide build.gradle (one from the project root): allprojects { repositories { ... maven { url "https://repository-achartengine.forge.cloudbees.com/snapshot/" } } }

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.

回答2:

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值