Software Archive
Read-only legacy content
17061 Discussions

build fail because of intelxdk.config.additions.xml

masuko
Beginner
950 Views

Hi,

when i add " <intelxdk:plugin> </intelxdk:plugin>"  to  "intelxdk.config.additions.xml" the build fail for android crosswalk 11 with the message below. when i remove  " <intelxdk:plugin> </intelxdk:plugin>"  from "intelxdk.config.additions.xml"  it work .

however it work without problem for android build (then i have problem with code version in google play).

the problem exist only when i build with crosswalk.

this problem started suddenly around 3 days ago .

also where can i access more detailed log ?

thank you 

An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • The App ID is "**************************"
  • The App Name is "**************"
  • Crosswalk Version: 11.40.277.7
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
0 Kudos
1 Solution
PaulF_IntelCorp
Employee
950 Views

There are a couple of problems with the example you provided:

  1. With this version of the XDK, local plugins must be placed inside your source directory (usually "www").
  2. The version of the plugin you provided has a plugin.xml bug (see the repo, he made a fix recently).
  3. You must provide the plugin BILLING_KEY parameter in the additions.xml file along with the plugin reference.
  4. You can also provide a reference to the github repo to build the plugin.

I cannot tell you if the plugin works, only that it builds.

These lines in the additions.xml file are what is needed to make it build locally (and assuming you have pulled down the version I reference, which is an update to the version you were using -- I pulled it down by selecting the 3.11.1 tag in the repo and then selecting the download ZIP option):

<intelxdk:plugin intelxdk:name="cc-fovea-cordova-purchase" intelxdk:value="cordova-plugin-purchase-3.11.1" >
    <intelxdk:param intelxdk:name="BILLING_KEY" intelxdk:value="MIIB...your-big-long-billing-key-here...AQAB" />
</intelxdk:plugin>

These lines in the additions.xml file are what is needed to make it build from a repo:

<intelxdk:plugin intelxdk:name="cc-fovea-cordova-purchase" intelxdk:value="https://github.com/j3k0/cordova-plugin-purchase.git#v3.11.1" >
    <intelxdk:param intelxdk:name="BILLING_KEY" intelxdk:value="MIIB...your-big-long-billing-key-here...AQAB" />
</intelxdk:plugin>

I've attached the version of the plugin that I downloaded and tested against, for your reference.

View solution in original post

0 Kudos
7 Replies
Gary_H_2
New Contributor I
950 Views

This seems to be the same problem as reported in a few other threads. I think 3rd party plugins for crosswalk builds are broken at the moment.

0 Kudos
masuko
Beginner
950 Views

thank you for your reply . then the solution is to wait ??

0 Kudos
PaulF_IntelCorp
Employee
950 Views

Can you provide a simple application, including the <project-name>.xdk file that is in the root of your project directory, that illustrates this problem. It will help immensely in debugging this issue.

0 Kudos
masuko
Beginner
950 Views

Hi,

here the blank proje466913ct reproducing the same error when i add the plugin. (here the same error for crosswalk build and android build)

0 Kudos
Amrita_C_Intel
Employee
950 Views

Hello,

Try to change the version of your plugin to cordova-plugin-purchase-3.9.0-beta.4 . I tried building your app with the latest version of this plugin it failed when i tried with this version it worked. I downloaded it locally from here https://github.com/j3k0/cordova-plugin-purchase/releases and included inside WWW directory of your project and removed the previous one and it worked.

Please see the attached zip.

0 Kudos
PaulF_IntelCorp
Employee
951 Views

There are a couple of problems with the example you provided:

  1. With this version of the XDK, local plugins must be placed inside your source directory (usually "www").
  2. The version of the plugin you provided has a plugin.xml bug (see the repo, he made a fix recently).
  3. You must provide the plugin BILLING_KEY parameter in the additions.xml file along with the plugin reference.
  4. You can also provide a reference to the github repo to build the plugin.

I cannot tell you if the plugin works, only that it builds.

These lines in the additions.xml file are what is needed to make it build locally (and assuming you have pulled down the version I reference, which is an update to the version you were using -- I pulled it down by selecting the 3.11.1 tag in the repo and then selecting the download ZIP option):

<intelxdk:plugin intelxdk:name="cc-fovea-cordova-purchase" intelxdk:value="cordova-plugin-purchase-3.11.1" >
    <intelxdk:param intelxdk:name="BILLING_KEY" intelxdk:value="MIIB...your-big-long-billing-key-here...AQAB" />
</intelxdk:plugin>

These lines in the additions.xml file are what is needed to make it build from a repo:

<intelxdk:plugin intelxdk:name="cc-fovea-cordova-purchase" intelxdk:value="https://github.com/j3k0/cordova-plugin-purchase.git#v3.11.1" >
    <intelxdk:param intelxdk:name="BILLING_KEY" intelxdk:value="MIIB...your-big-long-billing-key-here...AQAB" />
</intelxdk:plugin>

I've attached the version of the plugin that I downloaded and tested against, for your reference.

0 Kudos
masuko
Beginner
950 Views

Hi, 

thank you very much for your answers. 

I downloaded the version cordova-plugin-purchase-3.11.1.zip . (in this version they forget to change the version number into the plugin.xml file ). then i put it in WWW and add the billing key inside additions.xml file and the plugin.xml file 

it build (just hope that the new version of the plugin dont have other error).

 

Thank you very much 

 

 

0 Kudos
Reply