Im using Xamarin to export an apk from a game, and the ammo library fails to compile.
Im wondering if I have to “import ammo” at all or if the basics of the physics are already in the Playcanvas source?
Here’s the log
[INFO:CONSOLE(21)] “Fetch API cannot load file:///android_asset/files/assets/29228944/1/ammo.wasm.wasm. URL scheme “file” is not supported.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
03-25 18:40:41.449 I/chromium(18725): [INFO:CONSOLE(21)] “Fetch API cannot load file:///android_asset/files/assets/29228944/1/ammo.wasm.wasm. URL scheme “file” is not supported.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
[INFO:CONSOLE(21)] “wasm streaming compile failed: TypeError: Failed to fetch”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
03-25 18:40:41.634 I/chromium(18725): [INFO:CONSOLE(21)] “wasm streaming compile failed: TypeError: Failed to fetch”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
[INFO:CONSOLE(21)] “falling back to ArrayBuffer instantiation”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
03-25 18:40:41.645 I/chromium(18725): [INFO:CONSOLE(21)] “falling back to ArrayBuffer instantiation”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (21)
[INFO:CONSOLE(19)] “Fetch API cannot load file:///android_asset/files/assets/29228944/1/ammo.wasm.wasm. URL scheme “file” is not supported.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (19)
03-25 18:40:41.657 I/chromium(18725): [INFO:CONSOLE(19)] “Fetch API cannot load file:///android_asset/files/assets/29228944/1/ammo.wasm.wasm. URL scheme “file” is not supported.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (19)
[INFO:CONSOLE(292)] “both async and sync fetching of the wasm failed”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
[INFO:CONSOLE(292)] “both async and sync fetching of the wasm failed”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
03-25 18:40:41.662 I/chromium(18725): [INFO:CONSOLE(292)] “both async and sync fetching of the wasm failed”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
03-25 18:40:41.664 I/chromium(18725): [INFO:CONSOLE(292)] “both async and sync fetching of the wasm failed”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
[INFO:CONSOLE(20)] “failed to asynchronously prepare wasm: abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (20)
03-25 18:40:41.679 I/chromium(18725): [INFO:CONSOLE(20)] “failed to asynchronously prepare wasm: abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (20)
03-25 18:40:41.680 I/chromium(18725): [INFO:CONSOLE(292)] “abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
[INFO:CONSOLE(292)] “abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
[INFO:CONSOLE(292)] “abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
03-25 18:40:41.682 I/chromium(18725): [INFO:CONSOLE(292)] “abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/files/assets/29228946/1/ammo.wasm.js (292)
[INFO:CONSOLE(0)] “Uncaught (in promise) abort(“abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/index.html (0)
03-25 18:40:42.063 I/chromium(18725): [INFO:CONSOLE(0)] “Uncaught (in promise) abort(“abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”). Build with -s ASSERTIONS=1 for more info.”, source: file:///android_asset/index.html (0)