Adding Third Party SDK to Cocos2DJS Not Working on Android

Hello,

I am adding a high scores feature to my game, and therefore decided to use Parse.com to host the database of scores and use Parse’s SDK to make calls to it.

This worked perfectly when running on the web using cocos run -p web , however- when testing on android it simply crashes the app! I was under the impression that since this is just an extra piece of JS code I’m adding, it would be okay when converted into android form.

To add the SDK to my project I’m just adding the javascript file to jsList in project.json, but it doesn’t work. Is it possible to add an SDK this way? Or do I have to resort to only using the SDK’s provided by SDK box. Thanks :smile:

Where is your parse library located? If it’s outside of the src folder, it may not get copied into your app. I haven’t built my app for android (yet), but I know that when I made an iOS build, I had to tell XCode to copy an external library (whose code I kept outside of src) into the app bundle.

Yeah, its in the src folder. Its no longer crashing, but its not working either! When I click the button to ‘submit score’ to my database it works on the web, but not android! :confused: