Comments (6)
I have now excluded those files from the poi-shadow-all.jar to remove the warning.
from poi-on-android.
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.
from poi-on-android.
Sorry for late reply, Building APK I mean creating a release, minifyEnabled true
and I have applied the proguard-rules.pro config as described in this repo
My JDK is 11.0.16
and Yes I have added the system properties like this:
System.setProperty("org.apache.poi.javax.xml.stream.XMLInputFactory", "com.fasterxml.aalto.stax.InputFactoryImpl"); System.setProperty("org.apache.poi.javax.xml.stream.XMLOutputFactory", "com.fasterxml.aalto.stax.OutputFactoryImpl"); System.setProperty("org.apache.poi.javax.xml.stream.XMLEventFactory", "com.fasterxml.aalto.stax.EventFactoryImpl");
in my App class which extends Application
Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLEventFactory.","sources":[{"file":"C:\AndroidProjects\CIDApp\app\build\intermediates\merged_java_res\release\base.jar"}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLInputFactory.","sources":[{"file":"C:\AndroidProjects\CIDApp\app\build\intermediates\merged_java_res\release\base.jar"}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Unexpected reference to missing service class: META-INF/services/javax.xml.stream.XMLOutputFactory.","sources":[{"file":"C:\AndroidProjects\CIDApp\app\build\intermediates\merged_java_res\release\base.jar"}],"tool":"R8"}
from poi-on-android.
Could you provide the MainActivity or app java, build gradle and proguard files? It's difficult to determine the issue with the information given.
from poi-on-android.
in my proguard file:
`# for excel use
Apache POI
-dontwarn org.apache.**
-dontwarn org.openxmlformats.schemas.**
-dontwarn org.etsi.**
-dontwarn org.w3.**
-dontwarn com.microsoft.schemas.**
-dontwarn com.graphbuilder.**
-dontwarn javax.naming.**
-dontwarn java.lang.management.**
-dontwarn org.slf4j.impl.**
-dontwarn java.awt.**
-dontwarn net.sf.saxon.**
-dontwarn org.apache.batik.**
-dontwarn org.apache.logging.log4j.**
-dontnote org.apache.**
-dontnote org.openxmlformats.schemas.**
-dontnote org.etsi.**
-dontnote org.w3.**
-dontnote com.microsoft.schemas.**
-dontnote com.graphbuilder.**
-dontnote javax.naming.**
-dontnote java.lang.management.**
-dontnote org.slf4j.impl.**
-keeppackagenames org.apache.poi.ss.formula.function
-keep,allowoptimization,allowobfuscation class org.apache.logging.log4j.** { ; }
-keep,allowoptimization class org.apache.commons.compress.archivers.zip.* { ; }
-keep,allowoptimization class org.apache.poi.schemas.* { ; }
-keep,allowoptimization class org.apache.xmlbeans.* { ; }
-keep,allowoptimization class org.openxmlformats.schemas.* { ; }
-keep,allowoptimization class com.microsoft.schemas.* { *; }
`
my app java file at onCreate
System.setProperty("org.apache.poi.javax.xml.stream.XMLInputFactory", "com.fasterxml.aalto.stax.InputFactoryImpl"); System.setProperty("org.apache.poi.javax.xml.stream.XMLOutputFactory", "com.fasterxml.aalto.stax.OutputFactoryImpl"); System.setProperty("org.apache.poi.javax.xml.stream.XMLEventFactory", "com.fasterxml.aalto.stax.EventFactoryImpl");
This what i get when building release app
from poi-on-android.
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.
from poi-on-android.
Related Issues (20)
- Сompile JAR for a particular architecture? HOT 1
- fr.opensagres.poi.xwpf.converter.pdf.PdfConverter HOT 8
- Cannot insert picture in a XWPFDocument HOT 1
- XMLSlideShow解析失败 HOT 3
- Crash due to not able to locate index.xsb HOT 3
- ClassCastException writing Excel file HOT 4
- org.apache.poi.ooxml.POIXMLException HOT 2
- Office to pdf HOT 1
- Crash when run in app HOT 3
- the width value of cell in the excel looks strange
- java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/geom/Rectangle2D$Doubl HOT 2
- Do you have a plan for the next version? HOT 2
- Some questions about this project HOT 1
- Failing to build shadowJar HOT 2
- A quick question regarding performance (fastness of reading writing) HOT 1
- give some useful idea for poi function in android platform
- java.lang.NoSuchMethodError: No static method forArray HOT 3
- POITextExtractor bug! docs, xlsx, pptx are OK, but doc file throws Exception! HOT 3
- NoSuchMethodError createExtractor(Ljava/io/InputStream;)Lorg/apache/poi/POITextExtractor HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poi-on-android.