Android SDK Spongycastle Dependency

My Android application depends on spongycastle version 1.54.

PDFViewCtrlTools.aar contains the jars for version 1.47.

Android will not let this run. I get the following error:

Error:com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/spongycastle/x509/CertPathReviewerMessages.properties Error:com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/spongycastle/x509/CertPathReviewerMessages.properties Error:java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/spongycastle/x509/CertPathReviewerMessages.properties

How do I solve this?

Thanks,
Erin

All of the code to generate the PDFViewCtrlTools.aar file are included in the PDFNetAndroid\lib\src\PDFViewCtrlTools folder.

Load the project (gradle file) and change the dependency, and then you can build your own custom PDFViewCtrlTools.aar file.