我在项目中将jsoup库添加到/ lib文件夹。
调试时,我收到以下错误:
The Jar of this class file belongs to container 'Android Private Libraries' which does not allow modifications to source attachments on its entries
以下是错误指向的代码段:
Document htmlFile = null;
try {
htmlFile = Jsoup.connect("www.someURL.com").get();
} catch (IOException e) {
e.printStackTrace();
}
导致错误的原因是什么以及如何解决?
感谢任何帮助。