No implementation found for void org.cocos2dx.lib.Cocos2dxHelper.nativeSetAudioDeviceInfo(boolean, int, int)


No implementation found for void org.cocos2dx.lib.Cocos2dxHelper.nativeSetAudioDeviceInfo(boolean, int, int)

打包运行到安卓模拟器上报如上错误:

因为模拟器是x86架构的,需要x86架构的so包

解决方案:

打so包时,修改 jni/Application.mk 文件中,加上 x86

1
APP_ABI := armeabi armeabi-v7a x86

再执行 build_native.py 重新打 so 包