SDKBOX installation error (cocos2dx 3.6 cpp)

SDKBOX installation error (cocos2dx 3.6 cpp)
0.0 0

#21

looks like a bug…

sdkbox.android_set_key_value(sdkbox.APPLICATION, 'APP_STL', 'gnustl_static', 'c++_static')

If you open your Application.mk and manually set the APP_STL value to gnustl_static it should work.


#22

@slackmoehrle @mannewalis
Thank you for reply.

Application.mk

APP_STL := gnustl_static

APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic


ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif

APP_PLATFORM := android-9

sdkbox import adcolony

kawamura-no-MacBook-Air:test2_v36 kawamura$ sdkbox import adcolony
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2015 Chukong Technologies Inc. v0.5.7.24
 failed to patch file AppDelegate.cpp
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/adcolony/v3-cpp/
 Some installation steps failed.
 Please refer to the online documentation, for instructions on how to complete the installation manually.
 Installation completed with errors :|

I 'll try manually.
thanks.


#23

That actually means sdkbox imported successfully, it just failed to modify your AppDelegate.cpp file which is fine…


#24

@nite
Thank you for reply.
But I was able to install manually.
thanks!


#25

thanks this worked out for me


#26

Can you explain how to install manually in android studio if you have? thanks


#27
  1. download plugin from http://www.sdkbox.com/integrations

  2. copy all jar file

    cp plugin/android/libs/*.jar cocos2d/cocos/platform/android/libcocos2dx/libs/
    
  3. copy and overwrite all the folders from plugin/android/jni/* to your <project_root>/proj.android/jni/ directory.

  4. edit proj.android/AndroidManifest.xml

  5. edit proj.android/jni/Android.mk

    LOCAL_WHOLE_STATIC_LIBRARIES := sdkbox PluginXXX
    
    LOCAL_STATIC_LIBRARIES := cocos2dx_static
    
    include $(BUILD_SHARED_LIBRARY)
    $(call import-add-path, $(LOCAL_PATH))
    
    $(call import-module, ./sdkbox)
    $(call import-module, ./prebuilt-mk)
    $(call import-module, ./pluginxxxx)
    

SDKBOX Integration without the Installer