ViewPdf from Assets - Runtime Error - open failed: ENOENT (No such file or directory)

I have a simple project. Running well in Companion

But, after build apk and installing it to my phone (Android 11), a problem appears (Runtime Error open failed: ENOENT (No such file or directory)

How should I fix it?

Thanks before

Here's blocks:

blocks (4)

and this Error Notification:

If you had read the documentation associated with the ViewPDF extension, you would see that there is an AddOn extension which provides access to assets with the compiled app.


Is this what you mean?


You can create a small procedure to check if your are in development or compiled.

I just tried it

Still Error (and blank on the phone screen) using Companion

You use the extension for a compiled app, otherwise you can use a file path to the pdf when running the companion. The AddOn extension will not work in companion.

Try something like this:

1 Like

you are right ...

The AddOn not work in Companion,but work in Compiled


Which is what I said in my first reply in this topic :blush:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.