achartengine演示编译,但运行时错误 [英] achartengine demo compiling, but runtime error

查看:148
本文介绍了achartengine演示编译,但运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着页<一上演示说明href="http://www.achartengine.org/content/goodies.html">http://www.achartengine.org/content/goodies.html

我成功导入了示范项目,但每一个图给投 一个的NoClassDefFoundError 在运行时,与此类似:

i successfully imported the demo project, but every chart give throws a NoClassDefFoundError at runtime, similar to this:

java.lang.NoClassDefFoundError:
org.achartengine.model.XYMultipleSeriesDataset

achartengine-1.0.0.jar 在构建路径,它在报告 引用的库。我想这是一个新手的问​​题,但我 决定举报它,因为我刚刚导入的示范项​​目的'是'的 并试图在我的手机上运行。

achartengine-1.0.0.jar is on build path, and it is reported under 'Referenced Libraries'. I guess this is a newbie problem, but I decided to report it since I just imported the demo project 'as is' and tried to run it on my phone.

我是否需要其他步骤,超值服务页面上不上市?

Do I need other steps, not listed on 'goodies' page?

推荐答案

我发现的谷歌论坛,测试,它似乎是工作:

I found a good answer on google groups, tested it and it seems to be working:

这是我曾经遇到在这种情况下,唯一的就是导出的jar ...如果是有道理的。

The only thing that I have ever came across in this case is the export of the jar ... if that makes sense.

在Eclipse中:

  1. 右键单击您的项目 - 去构建路径 - 选择配置构建 路径
  2. 进入排序和导出标签
  3. 检查achartengine-1.0.0.jar框,然后只需点击一下,它的名字
  4. 将它,以便其下面的Andr​​oid的依赖关系正确(有时这可以有所作为的,如果你有多个JAR)
  1. Right click your project - go to build path - select Configure build path
  2. go to the "Order and Export" tab
  3. Check the "achartengine-1.0.0.jar box and then single click its name
  4. move it up so its right below the Android dependancies (sometimes this can make a difference if you have multiple Jars)

点击确定,然后清理项目。 (项目 - >清洁...)

click ok then clean your project. (Project -> Clean...)

这篇关于achartengine演示编译,但运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆