I’m trying to import an SDKBOX plugin into an existing Cocos project in a Linux devel environment. The command I’m attempting, and the error I’m receiving are at the bottom of this post.
Based on the error, I looked in the the SDKBOX install location indicated, and (no surprise) found the folder did not exist. However, if I look in ‘~/.sdkbox/plugins/sdkbox-chartboost_v2.4.3.0/plugin/android/jni/’, I see two folders: PluginChartboost, and sdkbox. Given the error message, and the case-sensitive file-system in Linux, it would appear the SDKBOX import tool (or perhaps a meta-data file) is using improper case for the Android files. Have I done something wrong, or is this a bug in the import tool?
FWIW, the same basic issue is occurring for ‘pluginiap’, and others as well.
test host china: 0.00KB/s.
choose the fastest server ‘main’, speed is 593.98KB/s. #FATAL: Failed to find source file [home_folder_redacted]/.sdkbox/plugins/sdkbox-chartboost_v2.4.3.0/plugin/android/jni/pluginchartboost
Installation failed
As a workaround, that did the trick. Thank you! While importing sdkboxadplus, I had to rename the Android JNI plugin folders for: chartboost, admob, sdkboxads, and unityads.
Thanks for your help. I also had some trouble building the Android project. In the AppDelegate.cpp file, I had to lowercase the folder names in the #includes. Also, for each of the plugins, I had to change the Android.mk files to lowercase the module names, as well as rename the platform libraries in the ‘libs_c++_static’ folder.
I’m concerned my changes to AppDelegate.cpp will cause me issues when compiling for IOS, but I’ll cross that bridge later. The build is working now, so I’m able to start the integration effort.