I created a new module for my project for adding some extra features. In that module, I added Jsoup dependencies in module's Gradle file implementation 'org.jsoup:jsoup:1.10.2'
and implement this code to parse a simple HTML code.
Document document = Jsoup.parse(content);
Element element = document.body();
setElement(element);
Utils.appendView(this,getElement().children());
invalidate();
On running application, I'm getting this error trace with app crash.
E/UncaughtException: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jsoup/Jsoup;
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jsoup.Jsoup" on path: DexPathList[[zip