using jsoup with proguard closing force close

ぃ、小莉子 提交于 2019-12-03 09:48:16

The solution posted by @Erdem in a comment above seems to be the best one. I'm reposting it as an answer for visibility.

Add the line below to your proguard file

-keeppackagenames org.jsoup.nodes

This seems to be enough

jjLin

You can go to jsoup with proguard to find answer, which is to add the following to proguard-project.txt:

-keep public class org.jsoup.** {
public *;
}

Just add these lines in proguard-rules.txt

#Jsoup
-keep public class org.jsoup.** {
public *;
}
-keeppackagenames org.jsoup.nodes
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!