In case you set up your environment with another version of NDK than the recommended one (r9d) and got an error on launching the app:
1 | java.lang.UnsatisfiedLinkError: dlopen failed: |
2 | unknown reloc type 160 |
You can try modifying the~/Projects/MyGame/cocos2d/plugin/protocols/proj.android/jni/Application.mk
file with the following:
1 | # from: |
2 | APP_STL := c++_static |
3 | # to: |
4 | APP_STL := gnustl_static |