0

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

1 に答える 1

0

通常、これは、プロジェクトの /libs ディレクトリに androidplot jar がないか、IntelliJ や Eclipse などの IDE を ADT と共に使用している場合は、jar をクラスパスに明示的に追加していないことを意味します。

さらに、Androidplot 0.5.1 以降を使用している場合は、次の行を変更する必要があります。

title="A Simple XYPlot Example"

androidPlot.title="A Simple XYPlot Example"
于 2013-02-13T01:05:50.627 に答える