Update again:
I copied those three files into cocos2d/cocos/platform/android/java/libs, then I had to also comment out Fabric/Crashlytics because something broke. But that fixed it!
Gotta find out how to add Fabric/Crashlytics to command line builds later…
I am having the same error. I am using Android Studio and I installed SDKBOK via the console. The jars (all three of them) are present in cocos2d/cocos/platform/android/java/libs, but I still get the error in Cocos2dxActivity.java stating that:
Error:(50, 25) error: package com.sdkbox.plugin does not exist
Here are my steps (Cocos Creator 2.0.1, javascript, on mac OS):
I deleted the build folder.
I build again in Cocos Creator. I say yes to include plugin of sdkbox. I import sdkbox ads with checkmark on staging server.
I press compile in Cocos Creator which fails due to different reasons according to native.logs (for instance: package com.sdkbox.plugin does not exist, compileReleaseJavaWithJavac).
I used the files SDKBoxJSHelper.cpp and SDKBoxJSHelper.h, but compilation fails again.
I also looked at the solution of patio, but I’m unable to locate the folder .sdkbox\plugins<plugin folder>\plugin\android\libs on my mac. I assume I need to find this folder in the software folder of Cocos Creator and not in the folder of my project files (and build files).