Android.mk error Android studio in OSX

Android.mk error Android studio in OSX
0

Build command failed.

Error while executing process /Users/livemediadev/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/Android.mk NDK_APPLICATION_MK=/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/build/intermediates/ndkBuild/debug/lib NDK_TOOLCHAIN_VERSION=clang -j4 NDK_DEBUG=1 /Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libcocos2djs.so}

[armeabi-v7a] SharedLibrary : libcocos2djs.so

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginIAPJS(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginIAPJS_helper(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginAdMobJS(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginAdMobJS_helper(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginSdkboxAdsJS(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginSdkboxAdsJS_helper(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginFacebookJS(JSContext*, JS::Handle<JSObject*>)’

/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/jni/…/…/…/Classes/AppDelegate.cpp:0: error: undefined reference to ‘register_all_PluginFacebookJS_helper(JSContext*, JS::Handle<JSObject*>)’

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [/Users/livemediadev/Documents/cocos2dProjects/hhTest/frameworks/runtime-src/proj.android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libcocos2djs.so] Error 1

What could be causing the problem?

Thank you!

Please read the error… you must be using SDKBOX?