Library libpspdfkit Not Found

PSPDFKit has integrated support for ReLinker, which is a robust native library loader for Android. When using Android apps with native libraries (like PSPDFKit does), you’ll occasionally see errors like the following, which are caused by Android’s unreliable PackageManager implementation:

Caused by: java.lang.UnsatisfiedLinkError: Library libpspdfkit not found
at java.lang.Runtime.loadLibrary(
at java.lang.System.loadLibrary(
at com.example.NativeStuff.<clinit>(
... 5 more

ReLinker fixes these issues by replacing the standard System.loadLibrary call with a more reliable implementation. With Gradle, PSPDFKit automatically adds ReLinker as a transitive dependency — no further action is required to make ReLinker work. However, if you’re using manual library integration, you need to add ReLinker to the dependencies block of your build.gradle file.

Adding ReLinker

❗Important: This integration is only required if you manually integrate the PSPDFKit .aar file. If you used Maven/Gradle for integrating PSPDFKit, ReLinker has already been set up for you.

  1. Go to and look for the current version of ReLinker.

  2. Inside the dependencies block of your app/build.gradle, add the following (replace the version with the current one):

    dependencies {
        implementation 'com.getkeepsafe.relinker:relinker:'
  3. Run your app. PSPDFKit will automatically pick up ReLinker and use it.