I'm seeing this error in the pre-launch report:
Caused by: b.b.a.h.h: Error loading audio file: sounds/mysound.ogg
...
Caused by: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
at android.content.res.AssetManager.openAssetFd(Native Method)
at android.content.res.AssetManager.openFd(AssetManager.java:332)
The App is working fine on a real device, and also in the emulator. It only seems to show up in the pre-launch report (all devices fail).
Has anyone come across this before?
The following StackOverflow post looks related: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
However I ran the command unzip -lv MyApplication.apk
and it says the sound files are not compressed ("Stored" with 0%).
I also tried explicitly adding
android {
aaptOptions {
noCompress "ogg"
}
}
but to no avail.
Is this a problem with the Firebase emulators? One of the devices listed as failing matches a real device configuration that I have tested as working on a physical device.
Also, I'm using the LibGDX framework. I load the assets in the loading screen like so:
assetManager.load("sounds/mysound.ogg", Sound.class);
And then I get them using:
assetManager.get("sounds/mysound.ogg", Sound.class);