AChartEngine和Android工作室 [英] AChartEngine And Android Studio

查看:280
本文介绍了AChartEngine和Android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建一个应用程序,大量使用图表。 阅读网页,我选择achartengine,似乎有我需要的一切。

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.

我下载的jar文件,我插在libs文件夹,我选择添加到库中,我吃午饭的gradlew干净。 结果在我的org.achartengine.xxxx我总是返回无法解决的符号错误的进口来源。

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

推荐答案

我能够使用这个库在我的Andr​​oid Studio项目,的这个话题说明如何AChartEngine回购添加到项目中。

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

我所做的:

  1. 添加下面的项​​目范围内的build.gradle(一个来自项目的根目录):

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

allprojects {
    repositories {
        ...
        maven {
            url "https://repository-achartengine.forge.cloudbees.com/snapshot/"
        }
    }
}

  • 有关使用该库的每个模块,将其添加到它的build.gradle(你可以把这个顶级build.gradle是否应包含在所有模块):

  • 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'
    }
    

  • 现在我可以使用这个库中的项目中,我看到了类code协助弹出窗口和建设运行的成功。

    Now I can use the library in the project, I see the classes in code assist popups and build runs as succeeds.

    这篇关于AChartEngine和Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆