Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android JSoup不工作_Android - Fatal编程技术网

Android JSoup不工作

Android JSoup不工作,android,Android,我试图使用JSoup从字符串中删除html标记,但在运行时,仿真器给出了一个异常:NoClassDefFoundError:org.JSoup.JSoup 这是我的密码: String result="<html> hello </html>"; Jsoup.parse(result).text(); String result=“hello”; parse(result.text(); 有人能帮我吗?将JSoup jar放在lib中,而不是放在libs中 尝试并..

我试图使用JSoup从字符串中删除html标记,但在运行时,仿真器给出了一个异常:NoClassDefFoundError:org.JSoup.JSoup

这是我的密码:

String result="<html> hello </html>";
Jsoup.parse(result).text();
String result=“hello”;
parse(result.text();

有人能帮我吗?

将JSoup jar放在lib中,而不是放在libs中


尝试并..,.

您缺少依赖项。我不明白Dave是什么意思?您将jsoup lib放在哪个文件夹中?我将其放在项目文件夹中名为lib的文件夹中,并配置了生成路径,包括itTry清理和构建项目,然后重新运行。如果不起作用,那么重启eclipse,然后再试一次。是的,Android开发插件需要“libs”文件夹。。。如果你用不同的名字创造了一些东西,它不会把它捡起来。。。