<aside> 🌐 https://mupdf.com/r/Building-Android-MuPDF-Mobile

</aside>

Building the Android example

First do these steps, as you would do with any muPDF project:

Install Android Studio if you haven’t already.

Install the latest Android SDK and NDK.

Obtain a copy of libgs.so, and place it in mupdf/platform/android/viewer/jni setting FZ_ENABLE_GPRF (below) enables use of this library.

Now build the old viewer, which produces libmupdf_java32.so. This library actually contains both the old and new versions of the JNI interface.

Copy the resulting file to the new example app:

Also put a copy of libgs.so in mupdf/platform/android/example/mupdf/libs/armeabi-v7a/

Open the example project in Android Studio. The first time you’ll get a message about syncing the Gradle files, say OK to all of that.

If you see a message about “unregistered VCS root detected”, choose Add Root. This will allow you to use git from inside AS.