-
-
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
Unexpected reference to missing service class #109
Comments
With "building APK", you mean the test-app that is included in this project, right? Which version of JDK are you using? Any local changes? Do you have the system properties in place that are described at https://github.com/centic9/poi-on-android#necessary-system-properties. And please provide the full output if there is more. |
Sorry for late reply, Building APK I mean creating a release, minifyEnabled true My JDK is 11.0.16
in my App class which extends Application Task :app:minifyReleaseWithR8 |
Could you provide the MainActivity or app java, build gradle and proguard files? It's difficult to determine the issue with the information given. |
in my proguard file: `# for excel use Apache POI-dontwarn org.apache.** -dontnote org.apache.** -keeppackagenames org.apache.poi.ss.formula.function -keep,allowoptimization,allowobfuscation class org.apache.logging.log4j.** { ; } my app java file at onCreate
|
These are just warnings, right? Is anything not working because of this or are you just curious about the warnings? Android is missing some parts of normal JDK, this is why the setProperty()-calls are necessasry, the warnings might be remnants of this and may be hard to avoid here. |
I have now excluded those files from the poi-shadow-all.jar to remove the warning. |
I got this when building APK
Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLEventFactory.
Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLInputFactory.
Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLOutputFactory.
The text was updated successfully, but these errors were encountered: