XMLUtil.prettyFormatXml() throws on some Android devices
Description
Caused by: java.lang.IllegalArgumentException: Not supported: indent-number at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:580) at org.jivesoftware.smack.util.XmlUtil.<clinit>(XmlUtil.java:38) at org.jivesoftware.smack.util.XmlUtil.prettyFormatXml(XmlUtil.java:42) at io.nea.workwell.chat.connection.StethoXmppInterceptor.onStanzaReceived(StethoXmppInterceptor.kt:39) at io.nea.workwell.chat.connection.WorkwellChatConnection$setupXmppConnection$5.processStanza(WorkwellChatConnection.kt:417) at org.jivesoftware.smack.AbstractXMPPConnection$5.run(AbstractXMPPConnection.java:1198) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:784)
Caused by: java.lang.IllegalArgumentException: Not supported: indent-number at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:580) at org.jivesoftware.smack.util.XmlUtil.<clinit>(XmlUtil.java:38) at org.jivesoftware.smack.util.XmlUtil.prettyFormatXml(XmlUtil.java:42) at io.nea.workwell.chat.connection.StethoXmppInterceptor.onStanzaReceived(StethoXmppInterceptor.kt:39) at io.nea.workwell.chat.connection.WorkwellChatConnection$setupXmppConnection$5.processStanza(WorkwellChatConnection.kt:417) at org.jivesoftware.smack.AbstractXMPPConnection$5.run(AbstractXMPPConnection.java:1198) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:784)