No implementation found for void com.sdkbox.plugin.SDKBox.nativeInit

No implementation found for void com.sdkbox.plugin.SDKBox.nativeInit


Someone please help.
I’m getting this crash when trying to run cocos2d-js project on Android.
I followed integration how-to and it’s perfectly works on iOS, but no results on android still although I tried all solutions I found for this problem in google and especially on this forum.
Here is details for exception:

01-02 22:21:45.935 20568-20568/ru.heximal.madknight E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.heximal.madknight, PID: 20568
java.lang.UnsatisfiedLinkError: No implementation found for void com.sdkbox.plugin.SDKBox.nativeInit(java.lang.Object, java.lang.ClassLoader) (tried Java_com_sdkbox_plugin_SDKBox_nativeInit and Java_com_sdkbox_plugin_SDKBox_nativeInit__Ljava_lang_Object_2Ljava_lang_ClassLoader_2)
at com.sdkbox.plugin.SDKBox.nativeInit(Native Method)
at com.sdkbox.plugin.SDKBox.init(
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(

Android SDKBOX: App crashes immediately on startup

Which plugin are you using?


I’m currently trying to setup sdkboxplay plugin.


Looks like the integration process was not complete.

Can you double check with the manual integration steps to make sure all the integration steps are completed?


it’s said
Copy the sdkboxplay_lib directories from plugin/android/libs to your <project_root>/libs/ directory.

but I can’t find any directories at plugin/android/libs. is it about plugin bundle, right?


still no success.
I’ve double-triple checked all steps from manual integration guide, but still getting this crash.
looks like native libs are not linked to the project.
what am I doing wrong?


Can you search and see if there is a jni folder in your project? If there is can you double check if there is sdkbox and sdkboxplay folder in it? If both folders are there check to make sure they’re been referenced.


yeah, it is there (jni folder).
I also tried to replace gnustl with c++static.
here is my

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := cocos2djs_shared


LOCAL_SRC_FILES := hellojavascript/main.cpp \

../../../Classes/AppDelegate.cpp \
../../../Classes/PluginSdkboxPlayJS.cpp \
../../../Classes/PluginSdkboxPlayJSHelper.cpp \

LOCAL_LDLIBS := -landroid \
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../Classes

LOCAL_STATIC_LIBRARIES := cocos2d_js_static

LOCAL_WHOLE_STATIC_LIBRARIES += android_native_app_glue
LOCAL_LDLIBS += -landroid


$(call import-add-path,$(LOCAL_PATH))

$(call import-module, scripting/js-bindings/
$(call import-module, ./sdkbox)
$(call import-module, ./pluginsdkboxplay)


Are you building with android-studio? Can you try build with commandline?
certain version of cocos2d-x will not build c++ lib with android-studio

cocos rum -p android --android-studio


yeah, Android Studio.
I’ll try in a moment


it fails with

/frameworks/runtime-src/ fatal error: thread: No such file or directory
 #include <thread>
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/cocostudio_static/CCComExtensionData.o] Error 1
make: Leaving directory `/frameworks/runtime-src/'
Error running command, return code: 2.


might be in compatible with c++static


what does it mean?
sorry, I’m not too much familar with c++ build process((


it’s strange, but it’s compiling normally via Android Studio


Help me, Obi Van Kenobi. You’re my only hope)


Can you do the following

  1. switch back to gnustl, modify
APP_STL := gnustl_static
  1. compile again with
cocos run -p android --android-studio

The reason you can compile with android studio before is because c++ code haven’t been compiled by android-studio at all…


I did modify and now the compiler produces the error

/frameworks/runtime-src/ fatal error: thread: No such file or directory
 #include <thread>
In file included from /frameworks/runtime-src/,
                 from /frameworks/runtime-src/,
                 from jni/../../../Classes/SDKBoxJSHelper.h:10,
                 from jni/../../../Classes/PluginSdkboxPlayJS.cpp:3:
/frameworks/runtime-src/ fatal error: thread: No such file or directory
 #include <thread>
compilation terminated.
compilation terminated.
make: *** [obj/local/armeabi/objs-debug/cocos2djs_shared/__/__/__/Classes/PluginSdkboxPlayJSHelper.o] Error 1
make: *** [obj/local/armeabi/objs-debug/cocos2djs_shared/__/__/__/Classes/PluginSdkboxPlayJS.o] Error 1
make: Leaving directory `/frameworks/runtime-src/'
Error running command, return code: 2.


can you create a new project and see if it compiles at all?


can you remind me how to create new project?


I found it) Will try in a moment