AChartEngine和Android工作室工作室、AChartEngine、Android

2023-09-04 12:27:56 作者:沉默゛是我最好的保护色

我要创建一个应用程序,大量使用图表。 阅读网页,我选择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.

我所做的:

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

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是否应包含在所有模块):

Android Studio 3.2 Canary带来了更好的跟踪支持 Lint检查等

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.

 
精彩推荐
图片推荐