上的HtmlUnit的Andr​​oid [英] HtmlUnit on Android

查看:314
本文介绍了上的HtmlUnit的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在编码Android上的Web应用程序刮使用的HtmlUnit。 但是,当我建立的应用程序,生成错误出现转换到的Dalvik格式失败,错误1。 那么,如何构建使用了的HtmlUnit Android应用程序?请...

I have been coding a web scraping application on Android, using HtmlUnit. But, when I build the app, the build error occur "Conversion to Dalvik format failed with error 1". So, how do I build the android app using HtmlUnit? please...

推荐答案

我只是碰到了这一点,并看到了很多由XML相关的罐子引发其他错误,包括这样的:

I just ran into this, and saw a lot of other errors triggered by XML-related jars, including this:


[2011-05-20 12:57:50 - Android Hello] Dx 
trouble processing "javax/xml/XMLConstants.class":

Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.

This is often due to inadvertently including a core library file
in your application's project, when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class, then this is the most likely explanation of what's
going on.

问题走了之后,我删除了的Xalan xercesImpl XML-的API从项目罐子(我通常包括他们使用的HtmlUnit在桌面上的所有项目)。 presumably它们碰撞的版本包含在SDK中。

The problem went away after I removed the xalan, xercesImpl and xml-apis jars from the project (I usually include them with any projects using HtmlUnit on the desktop). Presumably they are colliding with the versions included in the SDK.

这篇关于上的HtmlUnit的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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