2016-11-20 100 views
3

我我的地塞米松類更新與AMIGO庫(它改變一個APK爲使用相同的密鑰和簽名其他APK,所有的工作除了JSOUP)的Android JSOUP的ExceptionInInitializerError

錯誤:

FATAL EXCEPTION: Thread-1567 Process: com.smedic.tubtub, PID: 26102 java.lang.ExceptionInInitializerError at org.jsoup.nodes.Document$OutputSettings.(Document.java:372) at org.jsoup.nodes.Document.(Document.java:19) at org.jsoup.parser.TreeBuilder.initialiseParse(TreeBuilder.java:32) at org.jsoup.parser.TreeBuilder.parse(TreeBuilder.java:42) at org.jsoup.parser.HtmlTreeBuilder.parse(HtmlTreeBuilder.java:56) at org.jsoup.parser.Parser.parseInput(Parser.java:32) at org.jsoup.helper.DataUtil.parseByteData(DataUtil.java:104) at org.jsoup.helper.HttpConnection$Response.parse(HttpConnection.java:666) at org.jsoup.helper.HttpConnection.get(HttpConnection.java:225) at com.power.mati.VideosAdapter$4.run(VideosAdapter.java:177) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.IllegalStateException: Could not read resource entities-xhtml.properties. Make sure you copy resources for org.jsoup.nodes.Entities at org.jsoup.nodes.Entities.load(Entities.java:289) at org.jsoup.nodes.Entities.access$000(Entities.java:25) at org.jsoup.nodes.Entities$EscapeMode.(Entities.java:48)

任何想法如何解決它?

我正在使用罐子和maven,相同的情況。

回答

1

您是否使用proguard進行代碼縮小?嘗試禁用proguard,看看是否解決這個崩潰。

+1

這可以更好地寫成評論 – Pzy64

8

我看到類似的東西,我的解決辦法是在proguard的

-keep class org.jsoup.**