混合Android应用程序的PDF路径错误

混合Android应用程序的PDF路径错误,android,cordova,phonegap,pdftron,mendix,Android,Cordova,Phonegap,Pdftron,Mendix,我的混合Android设备的PDFTron路径存在问题。 混合应用程序是在Mendix中构建的 下面是我的示例代码 WebViewer({ path: 'PDFTron/lib', documentType: 'pdf', //initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf', fullAPI: true, enableFilePicker: true }, document.getEle

我的混合Android设备的PDFTron路径存在问题。 混合应用程序是在Mendix中构建的

下面是我的示例代码

WebViewer({
path: 'PDFTron/lib',
documentType: 'pdf',
//initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf',
fullAPI: true,
enableFilePicker: true }, document.getElementById('viewer')).then(async function(instance) { /**** Some code here ***/ });});'
上面的路径对于web版本非常有效。在安卓系统中,我得到了这个错误

混合版本似乎采用了带有“file://”的路径


有谁能告诉我如何为混合应用程序提供正确的路径,或者PDFTron是否有其他解决方案。

您的文件结构是什么样的?当您使用相对路径时,是否也会出现此错误

致意