Bug: the sound component unable to find source file when published as .aab file on Google Play Store

Hello,

For developers confronted to this problem as I was, I share my findings…
The cause : It is due to the compression of the resources in the aab format.
Solution : Tell the bundle tool not to compress the audio resources.

Unfortunatly it is not easy to do…
You have to :

  1. Export your app as an Apk
  2. Follow the instructions of the “Manual way” of GitHub - sensei-z/APK2AAB: APK2AAB until the last one: ‘Compile aab’
  3. Before compiling the aab create a ‘BundleConfig.json’ file with the following content (exemple with ‘.oog’ files in assets):
    {
    “compression”: {
    “uncompressedGlob”: [“assets/**.ogg”]
    }
    }
  4. Run the compile aab command with additional option ’ --config=BundleConfig.json’
  5. Sign & upload your aab
  6. Enjoy!

Maybe one day, this will be included in Kodular code, but if you need to publish now, this might help.

Djam

1 Like