0

I'm trying to delete html tags from a string using JSoup, but at run time the emulator gives an exception that is: NoClassDefFoundError: org.jsoup.JSoup

here is my code:

String result="<html> hello </html>";
Jsoup.parse(result).text();

can anyone help me?

Khalid Taha
  • 3,183
  • 5
  • 27
  • 43

1 Answers1

2

Instead of putting JSoup jar in lib, put it in libs.

Try link1 and link2..,.

Community
  • 1
  • 1
MKB
  • 7,587
  • 9
  • 45
  • 71
  • 2
    Yeah, Android Dev plugin expects "libs" folder... if you create something w different name, it wont pick it up... – Vajk Hermecz Nov 12 '12 at 13:01