# FMOD error! (28) from FMOD::System-\>init only on the store distributed build

**URL:** <https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598>\
**Category:** FMOD Engine\
**Tags:** android, cpp\
**Created:** [August 26, 2023, 9:39am UTC](https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598 "2023-08-26T09:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atypicalgames](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@atypicalgames](https://qa.fmod.com/u/atypicalgames)\
**Post date:** [August 26, 2023, 9:39am UTC](https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598/1 "2023-08-26T09:39:29Z")

</div>

Hello,

So we’ve needed to update some really old games because of some store compliance issues with Google. We have a couple of games using FMOD and they all worked ok after updating the library and code except one.

This one is the only one using App Bundle distribution. When debugging locally FMOD starts fine and sound is ok. However the version I get from the beta channel on store fails init with 28. I am currently making a build with logging and Debug\_Initialize and pushing it to the store but I wondered if anyone else ran into this.

The code is the same across our games too so it seems to be packaging issue. App Bundle and Google making the packages looks to have an impact on this. The issue is the same across multiple Android devices and versions.

---

<div class="post-metadata">

**Author:** ![atypicalgames](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@atypicalgames](https://qa.fmod.com/u/atypicalgames)\
**Post date:** [August 26, 2023, 10:27am UTC](https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598/2 "2023-08-26T10:27:28Z")

</div>

and here’s the awaited extra info from the log:

```auto
08-26 13:20:42.804 10083 14951 I fmod : FMOD_OS_Init : Detected CPU family: 4, features: 0x7F, cores: 8.
08-26 13:20:42.804 10083 14951 E fmod : FMOD_JNI_GetEnv : JNI_OnLoad has not run, should have occurred during System.LoadLibrary.
08-26 13:20:42.804 10083 14951 D REVOGAME: FMOD error! (28) An error occurred that wasn't supposed to. Contact support.

```

I’m adding a

> System.loadLibrary(“fmod”);

call and see if that fixes but the odd thing is I have no such call in the other projects

---

<div class="post-metadata">

**Author:** ![atypicalgames](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@atypicalgames](https://qa.fmod.com/u/atypicalgames)\
**Post date:** [August 26, 2023, 11:41am UTC](https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598/3 "2023-08-26T11:41:26Z")

</div>

looks like this was it! AAB delivered build has sound now!

```auto
08-26 13:32:15.530 17290 18293 I fmod : FMOD_OS_Init : Detected CPU family: 4, features: 0x7F, cores: 8.
08-26 13:32:15.530 17290 18293 I fmod : SystemI::setOutputInternal : Setting output to 'FMOD AAudio Output'
08-26 13:32:15.778 17290 18293 I fmod : FMOD::supportsLowLatency : Low latency = true, Pro Audio = true, Bluetooth On = false, Acceptable Block Size = true (192)
08-26 13:32:16.014 17290 18293 I fmod : Thread::initThread : Init FMOD stream thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: Yes.
08-26 13:32:16.036 17290 18293 I fmod : Thread::initThread : Init FMOD mixer thread. Affinity: 0x4000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
0

```

I’m not holding my breath, just waiting on confirmation from another device and then re-uploading everything with normal non-logging build. If everything is ok I’ll make a reply just with the code line and mark it solution.

---

<div class="post-metadata">

**Author:** ![atypicalgames](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@atypicalgames](https://qa.fmod.com/u/atypicalgames)\
**Post date:** [August 28, 2023, 1:26pm UTC](https://qa.fmod.com/t/fmod-error-28-from-fmod-system-init-only-on-the-store-distributed-build/20598/4 "2023-08-28T13:26:11Z")

</div>

```auto
class GameActivity .... {
static{
    System.loadLibrary("fmod");
  }
....
}

```

What causes the different behavior between AAB store distributed code and debug is still a mystery for me but that line of code fixed the issue.
