获取NoClassDefFoundError的Android中Java的code。使用common.lang.StringUtils什么时候? [英] Getting NoClassDefFoundError when using common.lang.StringUtils in android java code?
问题描述
我收到此错误:-NoClassDefFoundError的任何地方code是使用StringUtils类或。我已经正确添加的jar文件到code,并没有出现在我的$ C $任何类型的错误方法C(使用Eclipse靛蓝)。
I am getting this error:-NoClassDefFoundError wherever the code is using StringUtils class or methods .I have correctly added the jar files to the code and is not showing any kind of error in my code(Using Eclipse Indigo).
有我错过了任何一点。我已经使用在其他项目这个jar文件,但他们的工作正常。
Is there any kind of point I am missing out. I have used this jar file in other projects but they worked properly.
请帮忙。如果任何一个越来越类似的问题?谢谢
Please help If any one is getting similar kind of problem?Thanks
推荐答案
是的,这是因为你的的.jar
文件没有正确导入。请按照以下步骤 -
Yes, this because of your .jar
file didn't import properly. Follow below steps -
-
将
的.jar
文件在你的项目的库
文件夹。
Place your
.jar
file in your project'slibs
folder .
其导入到你的项目。而且,转到项目 - >属性 - > Java构建路径 - >序标签
Import it into your project. And, GoTo project -> properties -> Java build path -> order tab.
检查,你的的.jar
文件是否检查并摆放整齐月1日。这是最主要的。
Check, whether your .jar
file checked and placed in order of 1st. This is the main thing.
希望这些步骤可以帮助您。看看下面的图片 -
Hope these steps helps you. Have a look at below image -
这篇关于获取NoClassDefFoundError的Android中Java的code。使用common.lang.StringUtils什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!