Answered
0
0

Hi!
I am using fmod studio in unity it works ok on osx and ios. But when I’m building for Android I got the following error:

D/dalvikvm( 4367): Trying to load lib /mnt/asec/com.ctdlgames.sonder6-2/lib/libfmodstudio.so 0x40f10d28
E/dalvikvm( 4367): dlopen(“/mnt/asec/com.ctdlgames.sonder6-2/lib/libfmodstudio.so”) failed: Cannot load library: find_library(linker.cpp:889): “/mnt/asec/com.ctdlgames.sonder6-2/lib/libfmodstudio.so” failed to load previously
I/Unity ( 4367): AndroidJavaException: java.lang.UnsatisfiedLinkError: Cannot load library: find_library(linker.cpp:889): “/mnt/asec/com.ctdlgames.sonder6-2/lib/libfmodstudio.so” failed to load previously
I/Unity ( 4367): java.lang.UnsatisfiedLinkError: Cannot load library: find_library(linker.cpp:889): “/mnt/asec/com.ctdlgames.sonder6-2/lib/libfmodstudio.so” failed to load previously

Any idea what might be causing this? Any help is appreciated.

Cheers!

  • asdasdasd

    Also i have found this log

    D/dalvikvm( 2561): Added shared lib /mnt/asec/com.ctdlgames.sonder6-1/lib/libfmod.so 0x42261d78

    AFTER the first log from my previous post. This might cause the error?

  • Nicholas Wilcox

    Can you check to make sure the code in RuntimeUtils.EnforceLibraryOrder() is being run before any code that tries to use the FMOD libraries.

  • asdasdasd

    Yep that was it. Strange that it was working on some androids but not on others. Anyways – thanks for support!

  • Nicholas Wilcox

    Automatic dependency loading was added in Android 4.4. Can you say what code was accessing FMOD functions before calling RuntimeUtils.EnforceLibraryOrder(), was it our code or yours?

  • asdasdasd

    Adding the previously mentioned call on Awake() did the job and first sounds are played in Start() function in my project so i suppose it was your code, it is hard for me to tell exact line thou.

Best Answer
0
0

Solved in the comments by explicitly calling RuntimeUtils.EnforceLibraryOrder() in the awake() phase of Unity. This issue only affects Android phones before 4.4.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.