Translations

Know another language? Translate this tutorial!

Stats

1,275 visitors
6.2K page views

Fixing Intel XDK Build error when using the Official "IAP Plugin"

Favourite 11 favourites
Tutorial written by SamRockOriginally published on 10th, February 2015 - 4 revisions

Hello!

My first article and I want to help you all address a very annoying issue when using the Official IAP plugin and trying to build the game on Intel XDK!


The issue was also reported as a bug by @Iolva on
https://www.scirra.com/forum/viewtopic.php?f=152&t=122260

Due to this, we all had to goto our best friend cranberrygame for his amazing plugin. No doubts, his PhoneGapIAP works really really well. I been using it for quite a while now.

But when I wanted a common Game Version for both my Android and Windows 8 game, I ran into really messy events of juggling between two IAP plugins that are trying to do the SAME thing!

This ends now!

I contacted the Intel XDK team on their official forum and found a way to fix this issue. And its very simple! :)

Here are the steps to fix the issue:

1. After you have exported the game in cordova with out intel xdk style checked - Jeremy C.
2. Open you project in Intel XDK
3. Click on the Projects TAB
4. Scroll down to "Cordova Hybrid Mobile App Settings" -Jeremy C.
5. Expand "Plugins and Permissions" section
6. Click add plugin - Jeremy C.
7. Choose third party plugin - Jeremy C.
8. Click on "Git Repo" - Jeremy C.
9. Copy/paste https://github.com/maxmoore14/AndroidInAppBilling.git - Jeremy C.

(refer below screenshot)

Open full size image

10. Click Import
11. AND YOU ARE DONE!

You should now be able to BUILD you "Crosswalk for Android" App without any error!

Hope this was helpful :)
IAP used in my game :)

Updated by Jeremy C. @carbincopy 6/26/2016

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

1
ciandromarcus 334 rep

The problem is that with the IAP embedded in the project exported in CORDOOR and opened in XDK, it issues an alert: "The requested plugin was not found: com.mcm.plugins.androidinappbilling You can remove the plugin (s) from your project And continue the plugin resolution process, or cancel plugin resolution and exit this project. ". Therefore, it is not possible to open it in XDK to add the plugin manually.

Saturday, November 12, 2016 at 10:17:54 PM
0
ciandromarcus 334 rep

The problem is that with the IAP embedded in the project exported in CORDOOR and opened in XDK, it issues an alert: "The requested plugin was not found: com.mcm.plugins.androidinappbilling You can remove the plugin (s) from your project And continue the plugin resolution process, or cancel plugin resolution and exit this project. ". Therefore, it is not possible to open it in XDK to add the plugin manually.

Saturday, November 12, 2016 at 10:18:37 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.