Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/grails/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
androidplot xml文件中存在错误_Android_Xml_Androidplot - Fatal编程技术网

androidplot xml文件中存在错误

androidplot xml文件中存在错误,android,xml,androidplot,Android,Xml,Androidplot,我正在使用Android Plot jar文件示例实现图表应用程序。。它显示应用程序在Jar文件的com.androidplot.xy.XYPlot上运行。但是当我在配置项目后尝试时,它显示错误为 Could not find class 'com.androidplot.xy.XYPlot', referenced from method com.androidplot.xy.SimpleXYPlotActivity.onCreate 帮我找到解决办法 我的xml代码是 <?xml v

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

Could not find class 'com.androidplot.xy.XYPlot', referenced from method com.androidplot.xy.SimpleXYPlotActivity.onCreate
帮我找到解决办法

我的xml代码是

<?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>

通常这意味着您要么在项目的/libs目录中没有androidplot jar,要么如果您在ADT中使用IntelliJ或Eclipse之类的IDE,您没有将jar显式添加到类路径中

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

title="A Simple XYPlot Example"

androidPlot.title="A Simple XYPlot Example"