导入jar时出错

时间:2013-06-25 03:03:51

标签: android jar

// 这是将jar导入项目时的android问题,而下面是logcat显示: 你能帮助我吗?

06-25 02:52:05.870: I/dalvikvm(769): Failed resolving Lorg/apache/xerces/dom/NodeImpl; interface 3262 'Lorg/w3c/dom/events/EventTarget;'
06-25 02:52:05.870: W/dalvikvm(769): Link of class 'Lorg/apache/xerces/dom/NodeImpl;' failed
06-25 02:52:05.870: W/dalvikvm(769): Unable to resolve superclass of Lorg/apache/xerces/dom/ChildNode; (2093)
06-25 02:52:05.870: W/dalvikvm(769): Link of class 'Lorg/apache/xerces/dom/ChildNode;' failed
06-25 02:52:05.870: W/dalvikvm(769): Unable to resolve superclass of Lorg/apache/xerces/dom/ParentNode; (2046)
06-25 02:52:05.870: W/dalvikvm(769): Link of class 'Lorg/apache/xerces/dom/ParentNode;' failed
06-25 02:52:05.870: W/dalvikvm(769): Unable to resolve superclass of Lorg/apache/xerces/dom/CoreDocumentImpl; (2104)

等你的解决!!

2 个答案:

答案 0 :(得分:0)

您要链接的jar文件需要位于libs文件夹中和/或标记为导出。您可以通过右键单击项目并选择属性> Java构建路径>订购和导出,然后选择已导入的jar的复选框,在Eclipse中标记导出。

答案 1 :(得分:0)

添加到项目时,jar或库文件需要位于同一工作区中。