我跟着页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中:
右键单击您的项目 - 去构建路径 - 选择配置构建 路径 进入排序和导出标签 检查achartengine-1.0.0.jar框,然后只需点击一下,它的名字 将它,以便其下面的Android的依赖关系正确(有时这可以有所作为的,如果你有多个JAR) Right click your project - go to build path - select Configure build path go to the "Order and Export" tab Check the "achartengine-1.0.0.jar box and then single click its name 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...)