有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

这个类文件的Jar属于容器“Android私有库”,它不允许修改其条目上的源附件

我在项目的/lib文件夹中添加了jsoup库

调试时,我遇到以下错误:

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();
                }       

错误的原因是什么?如何解决

感谢您的帮助


共 (0) 个答案