# \[Bug\]\[2.02.06\] Android startup crash

**URL:** <https://qa.fmod.com/t/bug-2-02-06-android-startup-crash/18789>\
**Category:** FMOD Engine\
**Tags:** unity\
**Created:** [May 23, 2022, 2:58pm UTC](https://qa.fmod.com/t/bug-2-02-06-android-startup-crash/18789 "2022-05-23T14:58:43Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [July 5, 2022, 5:32am UTC](https://qa.fmod.com/t/bug-2-02-06-android-startup-crash/18789/18 "2022-07-05T05:32:46Z")

</div>

Thank you for the additional information. This still appears to be due to an issue with initialization order. As a workaround, you can try moving the call to `RuntimeUtils.EnforceLibraryOrder()` inside RuntimeManager.cs `RuntimeManager.Instance.get` to be at the top of the try/catch block, ie

```auto
try
{
    RuntimeUtils.EnforceLibraryOrder(); // move to here

    #if UNITY_ANDROID && !UNITY_EDITOR
    // First, obtain the current activity context
    AndroidJavaObject activity = null;
    using (var activityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
    {
        activity = activityClass.GetStatic<AndroidJavaObject>("currentActivity");
    }

    using (var fmodJava = new AndroidJavaClass("org.fmod.FMOD"))
    {
        if (fmodJava != null)
        {
            fmodJava.CallStatic("init", activity);
        }
        else
        {
            RuntimeUtils.DebugLogWarning("[FMOD] Cannot initialize Java wrapper");
        }
    }
    #endif

    //RuntimeUtils.EnforceLibraryOrder(); // remove from here
    initResult = instance.Initialize();
}

```

Please let me know if that works around the issue.

---

_[View the full topic](https://qa.fmod.com/t/bug-2-02-06-android-startup-crash/18789)._
