prnawa / boilerpipe

Automatically exported from code.google.com/p/boilerpipe
0 stars 0 forks source link

Errors deploying to Android #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to get Boilerpipe set up on Android. I'm using Eclipse Indigo and 
can build my project.

As a test I am simply trying this:
<code>
String response="";
  try {
    response = ArticleExtractor.INSTANCE.getText(new URL("http://www.guardian.co.uk/technology/2012/apr/17/walled-gardens-facebook-apple-censors"));
  } catch (Exception e) {
    e.printStackTrace();
  }  
</code>

When I run I deploy as an Android application - I get a whole bunch of errors, 
all looking a little like this:

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.html.dom.SecuritySupport$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

When I take out the ArticleExtractor line I don't get any errors and can 
deploy. I wasn't sure if the problem is with Xerces or not, but I can deploy as 
an Android app with the exact same XercesImpl jar file, not using Boilerpipe, 
and the App runs fine i.e. so it seems to be taking issues with Xerces in one 
instance and not the other (if that makes sense)

Original issue reported on code.google.com by subd...@gmail.com on 18 Apr 2012 at 9:07