0

I added jsoup library to /lib folder in my project.

When debugging, I'm getting the following error:

The Jar of this class file belongs to container 'Android Private Libraries' which does not allow modifications to source attachments on its entries

Here is my code snippet which the error is pointing to:

              Document htmlFile = null;
                try {

                    htmlFile = Jsoup.connect("www.someURL.com").get();
                } catch (IOException e) {

                    e.printStackTrace();
                }       

What is causing the error and how to solve it?

Any help is appreciated.

Nikhil
  • 6,493
  • 10
  • 31
  • 68
  • possible duplicate of [The jar of this class file belongs to container 'Android Dependencies' which does not allow source modifications to source attachments on its entries](http://stackoverflow.com/questions/18942340/the-jar-of-this-class-file-belongs-to-container-android-dependencies-which-doe) – Divers Jan 18 '15 at 11:03
  • But, the container is different here ('Android Private Libraries') and context of the question is different as well. – Nikhil Jan 18 '15 at 11:27

0 Answers0