Unable to load file from assets

Hi, the same app loads fine on my not rooted P10 Lite Android 8 USB wired (and WiFi connected to my home WiFi) but if the WiFi is disabled on the phone, I got the following error from the Companion.


Tested several times, same behaviour ...

Did you try to connect via USB?

The error occur when I have the phone wired via USB but not connected to WiFi or mobile data (PC is obviously connected to my home WiFi)

Ok, AI2 or AI2Offline?

AI2 online, Companion 2.63

Post the aia or better a small test aia, which replicates the problem.

Or does it happen with any app (containing assets)?

Try also to

  • delete the Companion assets folder from your test device,
  • reload / refresh the browser and
  • connect again via USB.

My app attached. I tried with another project I have, same structure, two screen, images and some extensions. Same issue.
ESP32Cam5_checkpoint8(1).aia (249.7 KB)
I don't know how to delete the Companion assets from the phone

Same error with a simple aia (attached here)
testAssets.aia (2.4 KB)

no problem offline & online

which AI2 offline do you use? I want to try ...

Sometime the Companion stops loading with the following. Same aia. USB no WiFi.


Loads just fine using AI Companion (QR code) on WiFi ...
I'm really confused

i use Ethernet rj45 vis HUB +magnetic + PD power :slightly_smiling_face:


Did you try to delete the assets folder from Companion on your test device? Or delete the complete Companion folder in the ASD.
And also refresh browser and try again.

Where are these folders?

In the ASD:

grafik


ok thanks, I'm on Linux

Deleted the complete edu.mit.appinventor.aicompanion3 folder, uninstalled and reinstalled the Companion, restarted Firefox and AI2:


and, again, it loads just fine via WiFi (QR code)!
but no external_comps folder now ...
image

That folder only is there if you use extensions
Taifun

image
I have some extensions in my app

image