Android specific

Run the ~/Projects/MyGame/cocos2d/plugin/tools/publish.sh script.If you want to skip the other plugins and publish only the one you are using you can modify the line in cocos2d/plugin/tools/config.sh file:

Follow the instructions – you will be asked to enter the paths to your NDK, SDK and Ant.

In case your build is unsuccessful with the message: Unable to resolve project target 'android-7', make sure to edit the line with the target version of your Android version in your cocos2d/plugin/protocols/proj.android/project.properties:

// from:
target=android-7
// to:
target=android-<HERE> // Input the version you want to target and have available

And then run the script again. When the build is successful you can continue.

Run the ~/Projects/MyGame/cocos2d/plugin/tools/gameDevGuide.sh script.You will be asked to input the full path to your project. That would be like the following: ~/Projects/MyGame/proj.android. Click Next.

Then you will be asked to select/check the plugin you need. Check adcash and then click Finish and finally Close.