Error build cordova-plugin-fcm-with-dependency-updated

Good afternoon, I have added the plugin in my config.xml

<plugin name="cordova-plugin-fcm-with-dependency-updated">
<variable ANDROID_FCM_VERSION="21.0.0"/>
<variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0"/>
<variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" />
<variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" />
<variable ANDROID_DEFAULT_NOTIFICATION_ICON="fcm_push_icon.png"/>
</plugin>

The build gives me this error:

UserError: Failed to restore plugin "cordova-plugin-fcm-with-dependency-updated".
You might need to try adding it again.
Error: Error: Command failed with Unknown system error -8: /Users/vagrant/voltbuilder/agent/upload

I have used this plugin last month and it compiled correctly.
If you can help me I appreciate it. Thank you so much

Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)

That plugin is not listed on npmjs.com.

You’ll have to find another plugin which does a similar function.

My English is not very good but I attach the npm link
Plugin

LOL - the problem is simple!

In your config.xml, you have “cordova-plugin-fcm-with-dependency-updated”

However, the actual plugin is “cordova-plugin-fcm-with-dependecy-updated”.

Note that there is a spelling mistake in the actual name of the plugin. :slightly_smiling_face:

I have the same problem with “cordova-plugin-fcm-with-dependecy-updated”:

<plugin name="cordova-plugin-fcm-with-dependecy-updated">
		<variable ANDROID_FCM_VERSION="21.0.0"/>
		<variable ANDROID_GRADLE_TOOLS_VERSION="4.1.0"/>
		<variable ANDROID_GOOGLE_SERVICES_VERSION="4.3.4" />
		<variable ANDROID_FIREBASE_BOM_VERSION="26.0.0" />
		<variable ANDROID_DEFAULT_NOTIFICATION_ICON="fcm_push_icon.png"/>
</plugin>

In log:
Running hook: /plugins/cordova-plugin-fcm-with-dependecy-updated/scripts/install_ionic_dependencies.bat
Failed to install ‘cordova-plugin-fcm-with-dependecy-updated’: Error: Command failed with Unknown system error -8: /plugins/cordova-plugin-fcm-with-dependecy-updated/scripts/install_ionic_dependencies.bat
spawn Unknown system error -8

There are a number of outstanding issues with this plug - see the repo.

It also has not been updated in 2 years, so it may not be ready for Android 12.

Looking at the list of approved plugins, there may be other ones to try:

cordova-plugin-fcm-with-android-12-fix-v3
cordova-plugin-fcm-with-dependecy-updated
cordova-plugin-fcm-with-dependecy-updated-android12
cordova-plugin-fcm-with-dependecy-updated-12
cordova-plugin-fcm-with-dependecy-updated-with-get-id

(Inclusion of a plugin on this list only indicates the plugin has met our standards for VoltBuilder. It does not imply that it is properly supported by its author, that it does what is expected, or is compatible with all versions of Android or iOS.)

cordova-plugin-fcm-with-dependecy-updated-android12
Good morning, this plugin works correctly on ios. Thank you so much

Thanks for the good news!