Software Archive
Read-only legacy content
17061 Discussions

Error: Plugin FCMPlugin cannot be added. The plugin contains Gradle scripts.

Marcos_Queiroz
Beginner
258 Views

Estou tentando usar o plugin https://github.com/fechanique/cordova-plugin-fcm 

mas estou tendo o seguinte erro: 

  • Error: Plugin FCMPlugin cannot be added. The plugin contains Gradle scripts.

 

Com o plugin: https://www.npmjs.com/package/phonegap-plugin-push

funcionou perfeitamente, ai resolvi testar a nova ferramente por recomendação do google pra migrar do GCM para o FCM

 

Desde já agradeço.

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
258 Views

I'm trying to use the plugin https://github.com/fechanique/cordova-plugin-fcm but I'm having the following error:

Error: Plugin FCMPlugin can not be added. The plugin contains Gradle scripts.

With the plugin: https://www.npmjs.com/package/phonegap-plugin-push It worked perfectly, there decided to test the new tool by Google's recommendation to migrate from GCM to FCM

Thank you very much in advance.

The gradle script in https://www.npmjs.com/package/phonegap-plugin-push can be removed because that is a common operation that the build system takes care of (that is, removing that gradle script works because the build system already does what that gradle script does).

Unfortunately, the gradle script in https://github.com/fechanique/cordova-plugin-fcm is required to make that plugin work. Our build system cannot build with plugins that include gradle scripts, for security reasons. A future version of our build system will allow plugin gradle scripts, until that build system is available, you cannot use our build system with plugins that include gradle scripts.

0 Kudos
Reply