Scala Jar (Goose), how to use directly in Android/Java

400 Views Asked by At

can anybody help? I used to use Goose to extra text from html to complete. I've imported in my project and try to run, but the exception comes

07-18 09:44:13.472: E/AndroidRuntime(2565): Caused by: java.lang.NoClassDefFoundError: com.gravity.goose.Goose

I think it might be a problem between Java and Scala.

code like:

    String url = mNewsItem.getURL();
    Goose goose = new Goose(new Configuration());
    Article article = goose.extractContent(url);

Thx

0

There are 0 best solutions below