I was trying out the Aspose.words SDK and after including its JAR, I am getting the below exception:
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.bouncycastle.operator.DefaultAlgorithmNameFinder" on path: DexPathList[[zip file "/data/app/~~7Yor1dP0yUyNSv5XnCtVZw==/com.adobe.reader-8yCmtHAHXn2NHlXJDQvZIg==/base.apk"],nativeLibraryDirectories=[/data/app/~~7Yor1dP0yUyNSv5XnCtVZw==/com.adobe.reader-8yCmtHAHXn2NHlXJDQvZIg==/lib/arm64, /data/app/~~7Yor1dP0yUyNSv5XnCtVZw==/com.adobe.reader-8yCmtHAHXn2NHlXJDQvZIg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.aspose.words.internal.zzRO.<clinit>(Unknown Source:851)
at com.aspose.words.internal.zzI4.zzW(Unknown Source:22)
at com.aspose.words.zzY0E.zzZ(Unknown Source:10030)
at com.aspose.words.zzY0E.zzZH(Unknown Source:551)
at com.aspose.words.zzY0E.zzZI(Unknown Source:493)
at com.aspose.words.Document.zzZ(Unknown Source:1131)
at com.aspose.words.Document.save(Unknown Source:1106)
at com.aspose.words.Document.save(Unknown Source:1079)
at com.adobe.reader.utils.ARFileOpenUtils.openFile(ARFileOpenUtils.kt:409)
....
2024-11-11 16:37:29.356 4424-4424 IBG-CR com.adobe.reader E InstabugUncaughtExceptionHandler Caught an Unhandled Exception: java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/bouncycastle/operator/DefaultAlgorithmNameFinder;
at com.aspose.words.internal.zzRO.<clinit>(Unknown Source:851)
at com.aspose.words.internal.zzI4.zzW(Unknown Source:22)
at com.aspose.words.zzY0E.zzZ(Unknown Source:10030)
at com.aspose.words.zzY0E.zzZH(Unknown Source:551)
at com.aspose.words.zzY0E.zzZI(Unknown Source:493)
at com.aspose.words.Document.zzZ(Unknown Source:1131)
at com.aspose.words.Document.save(Unknown Source:1106)
at com.aspose.words.Document.save(Unknown Source:1079)
Do we need to manually include bouncy castle dependency on Android with the SDK to make it work? I am using the 24.9 version of Aspose.words for Android.