With Meteor moving to Cordova 9, I am unable to get a android build with the cordova push plugin. looks like the usual problem of one plugin wanting on version while another conflicts needing another version.
While adding plugin cordova-plugin-meteor-webapp@1.9.1 to Cordova project:
Error: Cannot find module ‘cordova-common’
Require stack:
- /…/.meteor/local/cordova-build/platforms/android/cordova/lib/builders/builders.js
- /…/.meteor/local/cordova-build/platforms/android/cordova/Api.js
I am using the config setting of:
App.appendToConfig( <plugin name="cordova-plugin-push" spec="2.3.0"> <variable name="ANDROID_SUPPORT_V13_VERSION" value="29.+" /> <variable name="FCM_VERSION" value="18.+" /> </plugin>
);
and Preferences of:
App.setPreference(‘android-targetSdkVersion’, ‘29’, ‘android’);
App.setPreference(‘android-minSdkVersion’, ‘19’, ‘android’);
App.setPreference(‘android-compileSdkVersion’, ‘29’, ‘android’);
App.setPreference(‘android-buildToolsVersion’, ‘29.0.3’, ‘android’)
App.setPreference(‘AndroidXEnabled’, ‘true’, ‘android’) - New not sure?
I am including a google-services.json
Any thoughts?