DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.17k stars 1.91k forks source link

Crash on v3.2.0-beta.1 #870

Open donynuransyah opened 4 years ago

donynuransyah commented 4 years ago

Crash Log : No implementation found for long com.shockwave.pdfium.PdfiumCore.nativeOpenDocument(int, java.lang.String) (tried Java_com_shockwave_pdfium_PdfiumCore_nativeOpenDocument and Java_com_shockwave_pdfium_PdfiumCore_nativeOpenDocument__ILjava_lang_String_2)

cc2hh commented 3 years ago

me too .

Here's how I solved it

step1: add to the module's build.gradle ndk { abiFilters "armeabi-v7a", "x86", "arm64-v8a" }

sourceSets { main { jniLibs.srcDirs = ['libs'] } }

step2: Add the corresponding SO file under the LIBS path

If the corresponding SO file cannot be found, it can be found in the APK that reported the error