I am working on integrating FMOD Studio with my Cocos2dx cross-platform game (iOS and Android). Everything works perfectly in iOS, but in the Android project I’m running into some problems.

I’ve edited the jni/Android.mk file to find the fmod .so files (this took a while to figure out) and it compiles fine using the cocos compile command. However, when I run the project using Android Studio I get a runtime error “Fatal Signal 11” at the line system->initialize.

I searched for solutions and found that it may have something to do with the fmod.jar file, but I can’t figure out how to include this file in the project. Does Cocos2d-x have any .java files, .mk files, or other configuration files that need to be edited to connect this file to the project?

Has anyone gotten FMOD to work with Cocos2d-x on Android before? If so, what am I missing? There doesn’t seem to be much information available.

I guess I have to add the fmod.jar file to the Android Studio project, not in Android.mk. I have it in proj.android-studio/app/libs folder. Right-clicked the file and selected “Add as library”. In “build.gradle” (Module: MyProject) its listed under dependencies: compile files(‘libs/fmod.jar’). Still same “Fatal signal 6” error.

I was working on integrating FMOD Studio with my Cocos2dx cross-platform game (iOS,win32 and Android),6 moths ago. Everything works perfectly in iOS and win32, but in the Android project I’m linking into some problems,today.The file type of ‘.ogg’ is supported by android,so I didn’t add fmod in android project. But,now ,I want to use fmod in android project,what should I do?I managed to build Cocos2d-x with FMOD on Android. Here is what I did:
LOCAL_PATH := $(call my-dir)