java.lang.NoClassDefFoundError的在Android SDK和ADT 20的Windows 64 [英] java.lang.NoClassDefFoundError on Android sdk and ADT 20 Windows 64
问题描述
早上好脂肪酶。我是什么样子是在从图书馆机器人,进口酒坛一commong问题。我试图用一个库来消耗在房子API。我复制的jar到libs文件夹在我的Android项目,去
属性 - > Java构建路径 - >库
并添加了罐子。另外,我在订单和出口
设置页检查了瓶子的名字框内。所有我是
Good morning ppl. I have what it looks like to be a commong problem in android, import jars from libraries. I'm trying to use a library to consume an in house api. I copied the jar into the libs folder on my android project and went to
Properties -> Java Build Path -> Libraries
and added the jar. Also, I checked the boxes within the jar name in the Order and Export
tab. all I have is the
java.lang.NoClassDefFoundError的异常
。
我看过几乎每一个岗位指向了相同的答案。放在libs文件夹中的罐子,使上面列出的步骤。毫无效果。我跑了ADT 20节,就在Win 7的64位靛蓝释放。我不是java或java的架构非常熟练,但是这是推动我坚果。任何人有一个differente方法呢?我失去了一些东西?
I have read almost every post that points to the same answer. Put the jar on libs folder and make the steps listed above. Nothing worked. I'm running the ADT v 20, on the Indigo release on a Win 7 x64. I'm not very skilled on java or java architectures but this is driving me nuts. Anyone has a differente approach to this? I'm missing something?
在此先感谢
推荐答案
您需要简单地拖动jar文件到libs文件夹,而不是手动添加。尝试从删除的jar文件
You need to simply drag the jar file into the libs folder and not manually add it. Try deleting the jar file from
属性 - > Java构建路径 - >库
Properties -> Java Build Path -> Libraries
清理并重建项目。
说明: 加载库的过程已经自动化和ADT 16日起改变了,这是不是落后与旧方法兼容。你实际上是试图使用添加库,它被添加库两次,打破它的这两种方法。
Explanation: The process of loading library has been automated and changed from ADT 16 onwards and it is not backward compatible with the older method. You were actually trying to use both the methods of adding library which was adding the library twice and breaking it.
这篇关于java.lang.NoClassDefFoundError的在Android SDK和ADT 20的Windows 64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!