Jump to content
PretjeNL

Exporting to android

Recommended Posts

Hello ,

i want to export my game from the source code CandyLand to andoird.
I have exported the construct 2 source to Cordova, but when i want to compile it in too android crosswalk with Intel XDK im getting a compile error with the phonegap plugin.

Here is the config.additions.xml file : http://www.filedropper.com/intelxdkconfigadditions

I have followed the tutorial on scirra.com for the building of the game, but im still getting an error.

What can i do about it ?

Thanks in advance!

Barry

 

Share this post


Link to post

Hi Barry,

Thanks for your post :) You need to update the code for the PhonegapGame plugin. Just replace the code at your current file with following one, save it and try to build again.

<intelxdk:plugin intelxdk:name="game" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-game" intelxdk:id="cordova-plugin-game">
	<intelxdk:param intelxdk:name="APP_ID" intelxdk:value="YOUR_GOOGLE_PLAY_GAME_APP_ID" />
</intelxdk:plugin>
<intelxdk:plugin intelxdk:name="https://github.com/cranberrygame/cordova-plugin-payment-iap" intelxdk:value="https://github.com/cranberrygame/cordova-plugin-payment-iap" />
<intelxdk:plugin intelxdk:name="org.apache.cordova.inappbrowser" intelxdk:value="org.apache.cordova.inappbrowser" />

Don't forget to replace 

YOUR_GOOGLE_PLAY_GAME_APP_ID

With your Google Play Game ID!

Then it should work out for you :)

Edited by Andreas

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy, Terms of Use, We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. & Guidelines.