Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Unable To Add 3rd Party Plugin

Robert_M_11
Beginner
3,370 Views

The upgrade to 2496 broke my 3rd party plugin references and when I tried to update threw errors complaining about not being able to find the project's plugin file.

I recreated the project and have added core plugins without any problems.  But when I try to add Google's ZIP plugin I get an error that says "Unknown Error.  Unexpected call to process.exit()"

I am trying to add the plugin via Git repo with a Repo URL of https://github.com/MobileChromeApps/zip.git.  How can I reference this plugin?

Thanks

Rob

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
3,353 Views

Regarding the ZIP plugin, try doing the following:

  • change your project to CLI 5.1.1
  • go to import a third-party plugin and choose the "registry" import (the default)
  • import the plugin by this name: cordova-plugin-zip and version: 3.0.0

It should pull in the plugin from the new Cordova registry (npm-based) and should also pull in the cordova-plugin-file plugin, also from NPM.

For the Social Sharing plugin, try to include it from the "featured" plugin list or, if you use the third-party option, do similarly to above:

  • change your project to CLI 5.1.1
  • go to import a third-party plugin and choose the "registry" import option (default)
  • import the plugin by this name: cordova-plugin-x-socialsharing and version 5.0.2

In both cases (above) you can leave off the version number and you'll get the latest version stored in the registry.

Let me know if this makes any difference.

View solution in original post

0 Kudos
24 Replies
Marek_Š_
Beginner
430 Views

And the final update - I just downgraded to version 2366 - the compilation works there fine for both iOS and Android.

0 Kudos
PaulF_IntelCorp
Employee
430 Views

Marek -- two comments:

  • uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library means: you need to change the "Minimum Android API" setting in the Android build settings to a 14 to insure your project will build with CLI 5.1.1, the XDK should be catching this in the build settings, but, unfortunately, it does not...
  • Do you need all of those plugins? It looks to me like you've got every core Cordova plugin selected. You should only select those that are truly required by your project. Some of the older versions of the XDK would select all of the plugins, which was a bad choice. Make sure you're only using what you actually need.

Look for the orientation plugin in the featured list in the new XDK and see the XDK FAQs for instructions on how to install two versions of the XDK onto your system. I encourage you to move to 2496, it will improve the stability of your application sources, due to the improved plugin management scheme. Building a CLI 4.1.2 project with the new version should be equivalent to building with 2366, but moving to CLI 5.1.1 is the recommended goal, since CLI 4.1.2 will eventually be deprecated due to significant changes in the Cordova project that will render it obsolete.

0 Kudos
Marek_Š_
Beginner
430 Views

Paul F. (Intel) wrote:

Marek -- two comments:

  • uses-sdk:minSdkVersion 10 cannot be smaller than version 14 declared in library means: you need to change the "Minimum Android API" setting in the Android build settings to a 14 to insure your project will build with CLI 5.1.1, the XDK should be catching this in the build settings, but, unfortunately, it does not...
  • Do you need all of those plugins? It looks to me like you've got every core Cordova plugin selected. You should only select those that are truly required by your project. Some of the older versions of the XDK would select all of the plugins, which was a bad choice. Make sure you're only using what you actually need.

Look for the orientation plugin in the featured list in the new XDK and see the XDK FAQs for instructions on how to install two versions of the XDK onto your system. I encourage you to move to 2496, it will improve the stability of your application sources, due to the improved plugin management scheme. Building a CLI 4.1.2 project with the new version should be equivalent to building with 2366, but moving to CLI 5.1.1 is the recommended goal, since CLI 4.1.2 will eventually be deprecated due to significant changes in the Cordova project that will render it obsolete.

Paul, thanks a lot for your response. Regarding to your comments:

1) No problem to change the Android setting and target CLI 5.1.1, but I have the issue with orientation, which I haven't solution for - just to repeat - orientation is set to Default, but it's locked to Portrait on my iPad. I'll the plugin you suggested.

2) I reviewed my plugins and exactly I need them all - it's quite huge application for aircrafts navigation.

Marek

0 Kudos
Marek_Š_
Beginner
430 Views

Paul,

thanks again for your advices - I tried as you recommended and it works fine.

Marek

0 Kudos
Reply