- Android minimum SDK: The MuPDF library needs Android version 5.0 or newer. Make sure that the
minSdkVersionin your app's
build.gradleis at least 21.
In order to include MuPDF in your app you need to use the Gradle build system.
The MuPDF App Kit can be retrieved as pre-built artifacts from a local
app/libs folder location relative to your Android project. Your Android project's module
build.gradle should add this location.
To add the MuPDF App Kit to your project add the dependencies section in your
build.gradle (not the
Ensure to follow these steps:
Download the latest MuPDF App Kit from here: https://github.com/ArtifexSoftware/mupdf-android-appkit/releases/download/18.104.22.168/mupdf-v22.214.171.124-i9730-Github-i9730-android-devkit.zip
Then copy the 5
aarfiles contained in
mupdf-test/app/libsto your own app's
build.gradleand then then the App Kit libraries should be correctly configured and ready for use.
To ensure you have correctly added the library to your project ensure that your source code files can reference
import com.artifex.sonui.editor.NUIView without error.