Open hitesh-shukla opened 5 years ago
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/imageio/ImageIO;
at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO.getSupportedMIMETypes(ImageLoaderFactoryImageIO.java:39)
at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderFactoryImageIO.isAvailable(ImageLoaderFactoryImageIO.java:54)
at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.registerLoaderFactory(ImageImplRegistry.java:182)
at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:111)
at org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.
same problem. Do you find the way to handle it?
Not yet have tried to load template(docx file) from assets in API level below 23?
Regarding javax.imageio, this will take a bit of work to address. Basically the package needs to be added (with any binary deps removed), and xmlgraphics-commons using it (repackaged?).
See workaround: https://www.docx4java.org/forums/android-f19/add-image-t2190.html
And reports of success doing similar against previous/old approach: https://stackoverflow.com/questions/23327798/adding-image-with-docx4j-to-doc-file
Using BinaryPartAbstractImage getting error
Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.imageio.ImageIO"