I’m using Cocos2dx 3.11.1. I was using SDKBox 2.2.3.5 for Chartboost, AdMob, IAP, and SDKBoxplay and everything was working perfectly. I updated to SDKBox 2.2.4.14 and nothing works.
First, I created a copy of my project before updating. After updating, I get errors like “Chartboost did not initialize” “Admob did not initialize” etc. So I went back to my old project, but somehow updating SDKBox in the new project messed up my old project.
So, I started from scratch. I deleted my Cocos library and replaced with a clean download of 3.11.1 and created a new project from the Cocos console. Then I tried 2.2.4.14 again and got a new error: “07-11 10:38:11.682: I/SDKBOX_CORE(9563): Sdkbox getEnvAttach jni not initialized.”
Once again, I do a clean install of Cocos2dx 3.11.1 and try SDKBox 2.2.3.5 (from old downloaded files) and get the same error.
Nothing works. I can’t get back to a clean state. What’s going on? How do I fix this? I just want to go back to when everything worked. Before I got an email saying everything would be better if I updated to 2.2.4.14…
can you send me a copy of your testing project? I’ll try to figure out what happened, from your error it looks like somehow the sdkbox core failed to update.
Hi, dnllowe,
I just tested your project and had it run successfully. It seemed to be the problem of your variable value of “android.library.reference.2” in “project.properties” file. Try change it by matching the first one.
Here is mine after modifying:
android.library.reference.1=…/cocos2d/cocos/platform/android/java/libs/gps
android.library.reference.2=…/cocos2d/cocos/platform/android/java
In Eclipse, I had always linked my project to the original Cocos2dx library, not the project’s Cocos2dx Library. I imagine this caused problems when the SDKBox plugins differed or were not present in both. And because Eclipse was linking to this, it was always modifying the “project.properties” file the way you saw it.
I don’t know if this will affect anyone else, but one quick note: I was unable to link my project to the project’s Cocos2dx library in Eclipse at first. I had to right click on the project and go to Properties > Java Build Path > Projects and add “libcocos2dx” before it would let me add it as a library in Properties > Android > Library. This caused me a few more minutes of headache, so maybe that will save someone some time.