SDKBOXPLAY: import issue!

Dear sdkbox support team,
I know sdkboxplay is new, but one issue I ve encountered was with the command -> sdkbox import sdkboxplay
I have copied my terminal below!

|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 SDKBOX Inc. v1.0.0.9
Failed to find source file C:/Users/nolan/.sdkbox/plugins/sdkbox-sdkboxplay_v2.2.0.12/plugin/android/jni/sdkboxplay
Installation failed :frowning:

Also I have tried the manual command (sdkbox import -b /plugin/) && (sdkbox import --plugin C:/Users/nolan/.sdkbox/plugins/sdkbox-sdkboxplay_v2.2.0.12/). First time I ran the command the sdkboxplay folder downloads with the hpp/jar etc… files, but stills when it comes to injecting them into my project!

My next option would be to walk the project dependencies for sdkbox injection and manually import the files my self, just a refresher the files that I nee to update are AppDelegate.cpp (adding code “#include sdkboxplay”), /jni/ (adding the sdkboxplay plugin folder), …/jni/Android.mk (adding code to support local & whole libraries!), …/libs/ (adding the sdkboxplay.jar file), and finally Androidmanifest (updating the activities to support sdkboxplay!). Please correct me if I am wrong!

Thanks for all the support - nolan!

Yes, there is an issue with the sdkbox play installer, we should be able to fix it in couple hours

1 Like

Should be fixed, you’ll getting a new version once the cache expires.

Does the Cache have something to do with the variables (get cache timeout: 24) || (get cache data len: 24950) which read out in my terminal when I run {sdkbox info -v}, If not then please explain! Tried installing sdkboxplay again, 8h after your post and no prevail! Just wonder if I need to reinstall sdkbox since my terminal reads out ‘server’: ‘download.sdkbox.com/installer/v1/’ , ‘sdkbox_version’: ‘1.0.0.9’.

Try this command rm -rf ~/.sdkbox/cache you should be able to see the version number 2.2.0.13

|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 SDKBOX Inc. v1.0.0.9
Expecting property name: line 28 column 8 (char 721)
Installation failed :frowning:

Still no success!
I Spent the day manually adding the plugin in by hand, I ended up refactoring the naming of PluginSdkboxPlayJS.hpp-> PluginSdkboxPlayJS.hpp and then reverting it back to PluginSdkboxPlay.hp, so that I didn’t have to refactor the Class name also! My application cat log reports

04-28 14:44:20.890 5287 5305 E AndroidRuntime: … 6 more
04-28 14:44:20.890 5287 5305 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: android.support.v4.util.ArrayMap
04-28 14:44:20.890 5287 5305 E AndroidRuntime: at java.lang.Class.classForName(Native Method)
04-28 14:44:20.890 5287 5305 E AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
04-28 14:44:20.890 5287 5305 E AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
04-28 14:44:20.890 5287 5305 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
04-28 14:44:20.890 5287 5305 E AndroidRuntime: … 7 more
04-28 14:44:20.890 5287 5305 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
04-28 14:44:21.841 5287 5287 D AndroidRuntime: Shutting down VM

I am debugging for android using cocos2d-xv3.10 javascript (cocos code Ide intellij) ADT: 24.4.1 NDK-r10e

Can you try this sample and see if there is any error with the device?

I saw that I was missing android-support-v4.jar in my project once embedded I was able to run your test code! You guys are Awesome! :smile:

Sorry for the error, we updated a new version with necessary jars included.

2 Likes