-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
NoClassDefFoundError: org.apache.poi.javax.xml.stream.FactoryFinder #81
Comments
I am not an expert with Android Apps at all, but maybe the proguard-settings obfuscate some files that should be excluded in the release-setup? |
@centic9 I tried that also. It's not resolved. I'm also trying to resolve the issue. Please let me know if you have any update. |
Sorry, as stated I know next to nothing about developing on Android, basically just what is in the test-application already, so I fear I am able to help much... |
Can you report an updated stacktrace? The one above indicates that some obfuscation is in place which may prevent this from working, see e.g. org.apache.poi.i.a.n.j.b. which shows obfuscation. |
Facing the same problem when using proguard |
ok got it working please add this lines to proguard rules -keep public class com.fasterxml**{;} |
This worked for me
|
any solution i'm facing same issue |
The same issue i m facing using this library with the release apk and I am using the same progaurd rule of this project. how to solve this issue |
That's because you have pro guard turned on in release build type, you should keep the crashed class in your progaurd. I had the same problem and after keeping, another crash pops up which needs another keep in progaurd, so what I did is just keep all the library's classes. |
Hi,
I'm facing the above issue even after adding the System properties as shown in ReadMe file.
Below is the log:
java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.NoClassDefFoundError: org.apache.poi.javax.xml.stream.FactoryFinder at org.apache.poi.javax.xml.stream.b.a(FactoryFinder.java:1) at org.apache.poi.javax.xml.stream.b.a(FactoryFinder.java:7) at org.apache.poi.javax.xml.stream.b.a(FactoryFinder.java:13) at org.apache.poi.javax.xml.stream.d.a(XMLEventFactory.java:1) at org.apache.poi.i.a.n.j.b.<clinit>(PackagePropertiesMarshaller.java:1) at org.apache.poi.i.a.a.v(OPCPackage.java:5) at org.apache.poi.i.a.a.<init>(OPCPackage.java:3) at org.apache.poi.i.a.l.<init>(ZipPackage.java:5) at org.apache.poi.i.a.a.a(OPCPackage.java:1) at org.apache.poi.util.l.a(PackageHelper.java:1) at org.apache.poi.l.b.l.<init>(XWPFDocument.java:1)
Target SDK Version is 29.
Its working in Debug APK. But not working in Release APK
The text was updated successfully, but these errors were encountered: