得到一个java.lang.NoClassDefFoundError的每一个jar文件 [英] Getting a java.lang.NoClassDefFoundError for every jar file

查看:112
本文介绍了得到一个java.lang.NoClassDefFoundError的每一个jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近重新安装我的电脑,Android SDK和Eclipse的安装最新版本。
而现在包括在每一个项目,我有,我得到一个java.lang.NoClassDefFoundError的为每个jar文件的每一个项目。

I have recently reinstalled my computer, installed latest version of Android SDK and Eclipse. And now every project that I have, I'm getting a "java.lang.NoClassDefFoundError" for every jar file included in every project.

我是一个Java初学者,我的最后一个星期花在论坛,但不能得到解决它。

I am a Java beginner, I have spend the last week on forums, but cannot get to fix it.

有人能帮帮我吗?

感谢您

推荐答案

您很可能是使用了过期的版本ADT之前重新格式化。邮政ADT 17,图书馆要么需要被复制到项目的文件夹,或者他们需要在构建路径上的出口被标记。否则,该库将无法与二进制APK打包,这样你会得到使用这些库时的NoClassDefFoundError

You were probably using an out-of-date version of ADT prior to reformatting. Post ADT 17, libraries either need to be copied to the libs folder of your project, or they need to be marked as exported on the build path. Otherwise, the libraries will not be packaged with the APK binary, thus you will get NoClassDefFoundError when using those libraries.

这篇关于得到一个java.lang.NoClassDefFoundError的每一个jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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