首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >androidplot xml文件出错

androidplot xml文件出错
EN

Stack Overflow用户
提问于 2013-02-12 12:53:13
回答 1查看 818关注 0票数 0

我正在使用Android Plot jar文件实现图表应用程序示例。它显示了应用程序在Jar文件的com.androidplot.xy.XYPlot上运行。但当我在配置项目后尝试时,它显示错误为,..

代码语言:javascript
复制
Could not find class 'com.androidplot.xy.XYPlot', referenced from method com.androidplot.xy.SimpleXYPlotActivity.onCreate

帮我找到一个解决方案。

我的xml代码是,..

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent">
<com.androidplot.xy.XYPlot
        android:id="@+id/mySimpleXYPlot"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginTop="10px"
        android:layout_marginLeft="10px"
        android:layout_marginRight="10px"
        title="A Simple XYPlot Example"/>
</LinearLayout>
EN

回答 1

Stack Overflow用户

发布于 2013-02-13 09:05:51

通常,这意味着您要么在项目的/libs目录中没有androidplot jar,要么如果您正在使用像IntelliJ或Eclipse这样的集成开发环境,那么您没有显式地将jar添加到您的类路径中。

此外,如果您使用的是Androidplot 0.5.1或更高版本,则需要更改此行:

代码语言:javascript
复制
title="A Simple XYPlot Example"

代码语言:javascript
复制
androidPlot.title="A Simple XYPlot Example"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14825612

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档