Android Question (Solved) R8 error with PDFium

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

I'm getting this runtime error when I using R8 with PDFium lib.

B4X:
** Activity (main) Resume **
onError()
java.lang.UnsatisfiedLinkError: No implementation found for long q.e.B(int, java.lang.String) (tried Java_q_e_B and Java_q_e_B__ILjava_lang_String_2) - is the library loaded, e.g. System.loadLibrary?
    at q.e.B(Native Method)
    at q.e.G(SourceFile:15)
    at k.a.a(SourceFile:20)
    at i.f.doInBackground(SourceFile:15)
    at android.os.AsyncTask$3.call(AsyncTask.java:396)
    at java.util.concurrent.FutureTask.run(FutureTask.java:328)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:1571)

This is my manifest

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="36"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.


AddProguardText(
    -dontwarn **.annotation.**
    -dontwarn androidx.work.**
    -dontwarn androidx.room.**
    -dontwarn androidx.concurrent.futures.**
    -dontwarn androidx.lifecycle.**
    -dontwarn androidx.collection.**
    
    -keep class net.sqlcipher.** { *; }
    -keep class androidx.sqlite.db.** { *; }
    -keep class com.SQLCipherB4A.** { *; }
    -keep class uk.co.martinpearman.** { *; }
    -keep class de.donmanfred.** { *; }
)

Project file is too big to upload so please download it from this link
Thank you
 
Back
Top