-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Dimension #75
Comments
Android does not provide the java.awt.* packages and also actively refuses if you try to add such classes, this means any part of Apache POI which uses java.awt.* stuff will currently fail this way. I did some workaround with shading for java.awt.Color before, you can try to do the same for Dimension, see https://github.com/centic9/poi-on-android/blob/master/poishadow/build.gradle#L39 and https://github.com/centic9/poi-on-android/tree/master/poishadow/src/main/java/org/apache/poi/java/awt |
Here is an example how I added some java.awt classes for my personal use: LePat@d38372b It can be done for any java.awt classes, I just needed to get cell size depending on text size (Rectagle2D.getWidth with comment in french...). |
Changes in #110 added some more classes from java.awt. This should now provide at least java.awt.Dimension and a few others. Please consider sending PRs if you add other classes and think they "good enough" for including here. |
I'm trying to insert an image xlsx but I end up with the following error:
This is my code (in Kotlin) :
The text was updated successfully, but these errors were encountered: