SDKBOX 1.1.5 Released (Important notice)

We just released SDKBOX 1.1.5 with bug fixes and updated 3rd party SDKs

##Important Notice

One important thing if you’re upgrading your android projects from previous version, is that we renamed PluginWrapper to SDKBox, so if you’re experiencing any build error, you need to rename

org.cocos2dx.plugin.PluginWrapper

to

com.sdkbox.plugin.SDKBox

##Highlight
If you haven’t tried SDKBOX Installer, you should consider give it a try, it’s super awesome.

it can integrate sdk with literally one command

sdkbox import -b path_to_plugin_package

We also have video tutorial for it

##Bugfix
With this update, we fixed following bug

  1. Unable to execute dex
    http://discuss.cocos2d-x.org/t/intergrating-google-analytics-unable-to-execute-dex
  2. Linking error regarding ParseUtil
2 Likes

I am getting this error when i try to use SDKBox installer a new Cpp build of Cocos2dx 3.7RC0 and Cocos2dx 3.6, could you help me with whats wrong? I am working on a Mac

sdkbox instance has no attribute ‘android_has_key_value’
Installation failed :frowning:

Which plugin are you trying to install when you encounter this issue?

I am trying to install IAP

Can you do sdkbox symbols and then sdkbox import -vv -b <path to plugin
and post the output to both?

I am not sure if this is what you want… but i tried


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 Chukong Technologies Inc. v0.5.3

Namespace(command=‘import’, dryrun=None, installer=‘sdkbox’, plugin=’/Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5.tar.gz’, project=’/Users/vincentchi/GoogleDrive/Match3Game’, server=‘download.sdkbox.com’, status=None, verbose=2)
[’/usr/local/bin/sdkbox_installer/sdkbox’, ‘import’, ‘-vv’, ‘-b’, ‘/Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5.tar.gz’]
calculating sha1 at /usr/local/bin/sdkbox_installer/sdkbox
sdkbox sha1 adbec97f63732c82fd9d9f8b29375745b28bc255
get remote manifest from http://download.sdkbox.com/installer/manifest.json
googleanalytics iap flurryanalytics vungle SDKBOX chartboost kochava adcolony tune
cocos2d-x installation directory /Applications/cocos2d-x-3.6/
cocos2d-x header directory /Applications/cocos2d-x-3.6/cocos/
cocos2d-x version 3.6.0
cocos2d-x project root /Users/vincentchi/GoogleDrive/Match3Game/
cocos2d-x project type cpp
loaded cocos project
loaded xcode project
loaded android project
setting plugin source to /Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5.tar.gz
extracting to /Users/vincentchi/Downloads/
calculating sha1 at /Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5/
sdkbox-iap_cpp_v1.1.5.tar.gz sha1 d537a33641f66889be0c19ea2f3c0e34fcf17238
Plugin directory set to /Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5/
tracking http://metrics.sdkbox.com/?{“status”%3Anull%2C"project"%3A"Match3Game"%2C"cocos"%3A"3.6.0"%2C"dryrun"%3Anull%2C"verbose"%3A2%2C"plugin"%3A"sdkbox-iap_cpp_v1.1.5"%2C"CDID"%3A"225b7863dd0827267361de0c363ef55a24a93362"%2C"server"%3A"download.sdkbox.com"%2C"sdkbox_version"%3A"0.5.3"%2C"command"%3A"import"%2C"installer"%3A"sdkbox"}
adding to backup LxyBlICR as /Users/vincentchi/GoogleDrive/Match3Game/proj.ios_mac/Match3Game.xcodeproj/project.pbxproj
adding to backup ri4eBStT as /Users/vincentchi/GoogleDrive/Match3Game/proj.android/jni/Android.mk
adding to backup ld4rFknX as /Users/vincentchi/GoogleDrive/Match3Game/proj.android/AndroidManifest.xml
adding to backup v1IihuwP as /Users/vincentchi/GoogleDrive/Match3Game/proj.android/project.properties
found sdkbox.package at /Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5/plugin/sdkbox.package
Traceback (most recent call last):
File “monolith.py”, line 4044, in init monolith (sdkbox.c:115129)
File “monolith.py”, line 4029, in monolith.main (sdkbox.c:98704)
File “monolith.py”, line 3330, in monolith.installer.perform (sdkbox.c:79691)
File “monolith.py”, line 3742, in monolith.installer.main (sdkbox.c:91672)
File “monolith.py”, line 3330, in monolith.installer.perform (sdkbox.c:79691)
File “monolith.py”, line 3975, in monolith.installer.cmd_import (sdkbox.c:97705)
File “/Users/vincentchi/Downloads/sdkbox-iap_cpp_v1.1.5/plugin/sdkbox.package”, line 44, in
if sdkbox.android_has_key_value(sdkbox.APPLICATION, ‘APP_STL’, ‘c++_static’):
AttributeError: sdkbox instance has no attribute ‘android_has_key_value’

We just fixed this bug, and next time you run sdkbox command it will auto update itself :slight_smile:

1 Like

It worked!!!

Hello in fllyrry docs written #include “PluginFlurryAnalytics/PluginFlurryAnalytics.h”
but it should be #include “pluginflurryanalytics/PluginFlurryAnalytics.h”
:expressionless: wasted many time becouse of this

1 Like

Hello, I have the same problem and it does not work!! :frowning:

when I execute the import (second time), sdkbox creates this log:

Namespace(command=‘import’, dryrun=None, installer=‘sdkbox’, manifest=‘manifest.json’, plugin=’/Users/micky/Downloads/sdkbox-iap_cpp_v1.1.5/’, project=’/Users/micky/Documents/Get18’, server=‘download.sdkbox.com/installer/’, status=None, verbose=0)
get remote manifest from http://download.sdkbox.com/installer/manifest.json
{
“packages”: {
“SDKBOX”: {
“versions”: {
“0.5.4”: {
“bundle”: “sdkbox”,
“sha1”: “ec63d4cca037638817fbbe2f8b2bef6f5768ecf6”
}
}
}
}
}
SDKBOX
cocos2d-x installation directory /Applications/cocos/
cocos2d-x header directory /Applications/cocos/cocos/
cocos2d-x version 3.4.0
cocos2d-x project root /Users/micky/Documents/Get18/
fallback to cocos project search False
cocos2d-x project type cpp
loaded cocos project
iOS project dirs [’/Users/micky/Documents/Get18/proj.ios_mac’]
loaded xcode project
loaded android project
supported projects cocos ios android
setting plugin source to /Users/micky/Downloads/sdkbox-iap_cpp_v1.1.5.tar.gz
extracting to /Users/micky/Downloads/
Plugin directory set to /Users/micky/Downloads/sdkbox-iap_cpp_v1.1.5/
adding to backup Fs0KA7lP as /Users/micky/Documents/Get18/proj.ios_mac/Get18.xcodeproj/project.pbxproj
adding to backup NMCGEZno as /Users/micky/Documents/Get18/proj.android/jni/Android.mk
adding to backup Jwo8lMRU as /Users/micky/Documents/Get18/proj.android/AndroidManifest.xml
adding to backup HUTL3gkm as /Users/micky/Documents/Get18/proj.android/project.properties
found sdkbox.package at /Users/micky/Downloads/sdkbox-iap_cpp_v1.1.5/plugin/sdkbox.package
Installation already complete, no actions were taken
Tracking: {‘sdkbox_version’: ‘0.5.4’, ‘cocos’: ‘3.4.0’, ‘args’: {‘status’: None, ‘dryrun’: None, ‘verbose’: 0, ‘plugin’: ‘/Users/micky/Downloads/sdkbox-iap_cpp_v1.1.5/’, ‘server’: ‘download.sdkbox.com/installer/’, ‘project’: ‘/Users/micky/Documents/Get18’, ‘command’: ‘import’, ‘installer’: ‘sdkbox’, ‘manifest’: ‘manifest.json’}}
tracking http://metrics.sdkbox.com/?{“sdkbox_version”%3A"0.5.4"%2C"cocos"%3A"3.4.0"%2C"args"%3A{“status”%3Anull%2C"dryrun"%3Anull%2C"verbose"%3A0%2C"plugin"%3A"%2FUsers%2Fmicky%2FDownloads%2Fsdkbox-iap_cpp_v1.1.5%2F"%2C"server"%3A"download.sdkbox.com%2Finstaller%2F"%2C"project"%3A"%2FUsers%2Fmicky%2FDocuments%2FGet18"%2C"command"%3A"import"%2C"installer"%3A"sdkbox"%2C"manifest"%3A"manifest.json"}%2C"CDID"%3A"1814dcdc8de5d28b8ce62b81e4e5b369e5121015"}

I’m not sure if the installation was good or not… but when I try to run in android device the message in the monitor device is
Failed to find config file: sdkbox_config.json

I’ve changed org.cocos2dx.plugin.PluginWrapper to com.sdkbox.plugin.SDKBox in PluginFactory.cpp
“com/sdkbox/plugin/SDKBox”

I’ve tried to put this file in differents folders like res in project or res in proj.android and it doesn’t work :frowning:

Maybe I’ve done something wrong… but I’ve tried three times in current and new projects

You’re doing a great work… thanks in advance

The installation is good.

Installation already complete, no actions were taken

Make sure you have followed the documentation correctly for modifying the Cocos2dxActivity.java. Calling SDKBox.init(this); before onLoadNativeLibraries(); for example will cause this kind of bug.

You can find online documentation here

Thank you for your help…

It was true that I haven’t made the modification in Cocos2dxActivity.java… I suposed that installer modified this file. We are learning step by step.
I realease that the problem was the version of the plugin iap_v1.1.6 of sdkbox, like the last version of sdkbox… It works only when the version is cpp and not generic :frowning:

I want to say that the file AndroidManifest.xml doesn’t have the permission and it’s necessary to upload the apk in google … if you can you would revise it.

You are doing a good job… thanks a lot.

the valid permission is
com.android.vending.BILLING, the sdkbox support the wrong value in the AndroidManifest.xml