I’ve been using FMOD for years in PC builds but now working on an Android Studio application. The project is Native Activity primarily c++ and I’m using the latest Android build release. I’ve followed the set up for the 3D example (using cmake) and have another library working fine using he exact same configuration. I’m targeting arm64-v8a. Unfortunately FMOD will not initialize and I get the following errors:
I/fmod: FMOD_OS_Init : Detected CPU family: 4, features: 0x7F, cores: 8.
E/fmod: FMOD_JNI_GetEnv : JNI_OnLoad has not run, should have occurred during System.LoadLibrary.
I’ve been tracing through other similar posts here such as
but to no avail. Any and all help would be appreciated.
I’ve included the init(), close() and load library static functions as outlined in this reference but to no avail. The build gradle also references the jar file as per the example.
I’ve looked at the documentation as well as the second forum post I referenced about attaching the current thread as I am initializing from within a native activity but so far no luck. Is there an example of this anywhere I could reference to make sure I’m calling the attach thread correctly?