Error after upgrading to cordova 6.4.0 in a project with Meteor

2

I have a project that was running with cordova 6.3.1 and it was all ok. After adding phonegap-plugin-push I started having problems

%% Plugin doesn't support this project's cordova version. cordova: 6.3.1, failed version requirement: >=6.4.0
%% Skipping 'phonegap-plugin-push' for android                                  
%% Plugin doesn't support this project's cordova version. cordova: 6.3.1, failed version requirement: >=6.4.0
%% Skipping 'phonegap-plugin-push' for ios   

So update cordova to 6.4.0 (meteor add cordova: [email protected]) and now I'm having other problems.

=> Errors executing Cordova commands:                                           

   While adding plugin [email protected] to Cordova project:                        
   Cordova error: Cannot find plugin.xml for plugin "package". Please try       
   adding it again.
   (If the error message contains suggestions for a fix, note that this may not 
   apply to the Meteor integration. You can try running again with the
   --verbose option to help diagnose the issue.)

/Users/diegodedieu/.meteor/packages/meteor-tool/.1.4.2.tjodye++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/runtime/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
  throw error;
  ^
  ExitWithCode:1

How can I solve these problems?

    
asked by Diego De Dieu 07.11.2016 в 18:38
source

2 answers

1

Meteor has an integrated Cordova version ( link ), you can not update it.

When you make meteor add cordova:[email protected] you go crazy because you think that you are adding a plugin and that is why it tells you that there is no plugin.xml because Cordova is not a plugin and does not have a plugin.xml

At the moment you will have to use a previous version of the plugin (1.8.4) until the meteor update the cordova-lib to 6.4.0

    
answered by 11.11.2016 в 11:44
0

The same message tells you the problem,

  

%% Plugin does not support this project's cordova version. Cordova:   6.3.1, failed version requirement: > = 6.4.0 %% Skipping 'phonegap-plugin-push' for android

the plugin version 1.9.0, requires at least one version 6.4.0.

link

    
answered by 07.11.2016 в 18:54