Fatal Exception: java.lang.ExceptionInInitializerError

Product: Android SDK

Product Version: 10.11.0

Fatal Exception: java.lang.ExceptionInInitializerError
Unexpected loadLibrary error. If this error persists please go to Error trying to loadLibrary for PDFNet Android - Apryse SDK - Apryse Community
com.pdftron.pdf.PDFNet. (Unknown Source:141)
com.pdftron.pdf.PDFNet.addResourceSearchPath (SourceFile)
com.pdftron.pdf.utils.AppUtils.initializePDFNetApplication (AppUtils.java:1)
com.pdftron.pdf.utils.AppUtils.initializePDFNetApplication (AppUtils.java:26)
com.pdftron.pdf.utils.PDFTronToolsInitializer.onCreate (PDFTronToolsInitializer.java:26)
android.content.ContentProvider.attachInfo (ContentProvider.java:2404)

We use Firebase Crashlytics to see crashes and I see a lot of these exceptions.
What is interesting is that we can’t reproduce it, and it’s reported only for Pixel 6 Pro, Android 12

1 Like

Hello! Thank you for reaching out through our Forum. Could you tell us what type of devices are impacted by this issue (i.e. device architecture, Android version, etc…)? Are you uploading your app to the Google Play Store via App Bundle?

1 Like

Hello, Pixel 6 Pro only, Android 12.
Yes, I upload the app to the Google Play Store via App Bundle

1 Like

Could you please try “enableUncompressedNativeLibs” flag as seen in this post:

enableUncompressedNativeLibs and useLegacyPackaging are recommended to try

Additional resources:
https://issuetracker.google.com/issues/127691101?pli=1

1 Like