android - 将项目导入到 Eclipse 时出现 NoClassDefFoundError?

标签 android eclipse noclassdeffounderror apache-commons-lang

我正在开发一个使用 Commonslang.jar 库的应用程序。我试图在新安装的 Eclipse 的新系统上设置它。该项目没有显示任何错误但是当我运行该项目时,它在我使用 Commonslang lib 的每个点强制关闭并出现 NoClassDefFoundError。

我不知道如何解决这个问题。请帮忙?

最佳答案

我认为您的项目目录中有"lib" 文件夹,所以只需将其更改为"libs" 而不是"lib" 并清理项目并检查它..

> 注意:无需为任何第三方库构建路径

关于android - 将项目导入到 Eclipse 时出现 NoClassDefFoundError?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10023701/

相关文章:

java - 我是否需要关闭 addOnSuccessListener 才能保存到数据库(setValue)?

java - sdk构建路径问题

java - 如何确定 .text 文件中整数列表的最小值和最大值?

JAVA:无法运行 jar 文件

java - log4j 和 java.lang.NoClassDefFoundError : org/apache/log4j/Layout

android - "Could not find a method .. in the activity class .. for onClick handler"

android - 摘下耳机时如何停止音乐播放器?

Java 真正的全局变量(Android 版 Eclipse)

c++ - 为团队的其他成员恢复对 Eclipse 项目库的更改

java - 如何从 JBoss 7 或 WildFly 中部署的应用程序访问 JDK tools.jar javac