I\'m trying to run pdfbox.jar library on Android and seems like I do everything right. I use Eclipse pluging to deploy the project. The code is very simple just call for pd
The problem is due to the lack of AWT support in android, as others have indicated. A work-around for you could be to use the android port of PDFBox:
https://github.com/Birdbrain2/PdfBox-Android
tldr; replace your gradle dependency on PDFBox with this: org.apache:pdfbox-android:latest version here, and consider adding MultiDex support to your app if you get a DexIndexOverflowException exception.