jsoup 1.8.2 + android,NoClassDefFoundError:解析失败:Ljava / applet / Applet;

时间:2016-03-14 17:25:32

标签: java android jsoup

尝试在Android上使用html解析器。但我得到NoClassDefFoundError。我该如何解决这个问题?

输出:

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/applet/Applet;
    at com.trend.iwss.jscan.runtime.Session.setAppletInstance(Session.java:88)
    at org.jsoup.Connection$Method.<clinit>(Connection.java)
    at org.jsoup.helper.HttpConnection$Request.<init>(HttpConnection.java:369)
    at org.jsoup.helper.HttpConnection$Request.<init>(HttpConnection.java:352)
    at org.jsoup.helper.HttpConnection.<init>(HttpConnection.java:64)
    at org.jsoup.helper.HttpConnection.connect(HttpConnection.java:37)
    at org.jsoup.Jsoup.connect(Jsoup.java:73)

1 个答案:

答案 0 :(得分:1)

解决。如您所见,jar存档中有一个com.trend.iwss.jscan .....文件夹。这是我们的trendmicro网络扫描仪添加的。直接下载jar并且jsoup正在工作。 因此,当trendmicro即将来临时,请不要下载您的资源;)。