【问题标题】:error in androidplot xml fileandroidplot xml文件中的错误
【发布时间】:2013-02-12 04:53:13
【问题描述】:

我正在使用 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>

【问题讨论】:

    标签: android xml androidplot


    【解决方案1】:

    通常这意味着您要么在项目的 /libs 目录中没有 androidplot jar,要么如果您使用带有 ADT 的 IntelliJ 或 Eclipse 等 IDE,则您没有明确地将 jar 添加到您的类路径中。

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

    title="A Simple XYPlot Example"
    

    androidPlot.title="A Simple XYPlot Example"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-26
      相关资源
      最近更新 更多