10

achartengine デモを使用しようとしましたが、チャートを表示するために何かをクリックするたびに、「アプリケーション AChartengine が予期せず停止しました。もう一度やり直してください」というエラーが表示されます。どうすればいいのか教えてくれる人はいますか?このページhttp://www.achartengine.org/content/goodies.htmlで提案されている指示に従いました。API レベル 7 のエミュレータ標準を使用しています。次のエラーがあります。

    04-15 09:08:43.285: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.AverageTemperatureChart.execute
    04-15 09:08:43.325: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYSeries', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.addXYSeries
    04-15 09:08:43.345: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildBarDataset
    04-15 09:08:43.387: E/dalvikvm(333): Could not find class 'org.achartengine.renderer.XYMultipleSeriesRenderer', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildBarRenderer
    04-15 09:08:43.395: E/dalvikvm(333): Could not find class 'org.achartengine.model.CategorySeries', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildCategoryDataset
    04-15 09:08:43.425: E/dalvikvm(333): Could not find class 'org.achartengine.renderer.DefaultRenderer', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildCategoryRenderer
    04-15 09:08:43.425: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildDataset
    04-15 09:08:43.445: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildDateDataset
    04-15 09:08:43.445: E/dalvikvm(333): Could not find class 'org.achartengine.model.MultipleCategorySeries', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildMultipleCategoryDataset
    04-15 09:08:43.485: E/dalvikvm(333): Could not find class 'org.achartengine.renderer.XYMultipleSeriesRenderer', referenced from method org.achartengine.chartdemo.demo.chart.AbstractDemoChart.buildRenderer
    04-15 09:08:43.525: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.AverageCubicTemperatureChart.execute
    04-15 09:08:43.545: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.TrigonometricFunctionsChart.execute
    04-15 09:08:43.555: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.ScatterChart.execute
    04-15 09:08:43.555: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.SalesComparisonChart.execute
    04-15 09:08:43.565: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.ProjectStatusChart.execute
    04-15 09:08:43.576: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.SalesGrowthChart.execute
    04-15 09:08:43.595: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method org.achartengine.chartdemo.demo.chart.ProjectStatusBubbleChart.execute
    04-15 09:08:43.606: E/dalvikvm(333): Could not find class 'org.achartengine.model.XYMultipleSeriesDataset', referenced from method org.achartengine.chartdemo.demo.chart.TemperatureChart.execute
    04-15 09:08:43.606: E/dalvikvm(333): Could not find class 'org.achartengine.model.CategorySeries', referenced from method org.achartengine.chartdemo.demo.chart.WeightDialChart.execute
    04-15 09:08:43.615: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.SensorValuesChart.execute
    04-15 09:08:43.615: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.CombinedTemperatureChart.execute
    04-15 09:08:43.626: E/dalvikvm(333): Could not find class '[Lorg.achartengine.chart.PointStyle;', referenced from method org.achartengine.chartdemo.demo.chart.MultipleTemperatureChart.execute
    04-15 09:13:51.145: E/AndroidRuntime(333): Uncaught handler: thread main exiting due to uncaught exception
    04-15 09:13:51.155: E/AndroidRuntime(333): java.lang.NoClassDefFoundError: [Lorg.achartengine.chart.PointStyle;
    04-15 09:13:51.155: E/AndroidRuntime(333):  at org.achartengine.chartdemo.demo.chart.AverageTemperatureChart.execute(AverageTemperatureChart.java:72)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at org.achartengine.chartdemo.demo.ChartDemo.onListItemClick(ChartDemo.java:102)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.app.ListActivity$2.onItemClick(ListActivity.java:312)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.widget.AdapterView.performItemClick(AdapterView.java:284)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.widget.ListView.performItemClick(ListView.java:3285)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.widget.AbsListView$PerformClick.run(AbsListView.java:1640)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.os.Handler.handleCallback(Handler.java:587)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.os.Handler.dispatchMessage(Handler.java:92)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.os.Looper.loop(Looper.java:123)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at android.app.ActivityThread.main(ActivityThread.java:4363)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at java.lang.reflect.Method.invokeNative(Native Method)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at java.lang.reflect.Method.invoke(Method.java:521)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    04-15 09:13:51.155: E/AndroidRuntime(333):  at dalvik.system.NativeStart.main(Native Method)
    04-15 09:13:51.175: E/dalvikvm(333): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
4

2 に答える 2

41

これに対する解決策については、http: //groups.google.com/group/achartengine/browse_thread/thread/4cb1efddad3c19d0/2b59e5164e05c469#2b59e5164e05c469を参照してください。

ダン

見積もり:

Eclipse の場合: -> プロジェクトを右クリック - ビルド パスに移動 - [ビルド パスの構成] を選択 -> [注文とエクスポート] タブに移動 -> [achartengine-1.0.0.jar] ボックスにチェックを入れ、その名前をシングル クリック - > Android依存関係のすぐ下に移動します(複数のJarがある場合、これが違いを生むことがあります)

[OK] をクリックして、プロジェクトを消去します。(プロジェクト -> クリーン...)

もう一度実行してみて、それが役立つかどうかを確認してください。

于 2012-05-08T09:55:28.953 に答える