Hi,

I am creating application where i need to use snackbar in android application.

I have created my own extension using cordova plugin https://github.com/echonox/cordova-plugin-snackbar

I used that extension in my application.But when i try to generate apk, i am getting following error.

Failed to install 'cordova-plugin-snackbar': Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-snackbar. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-snackbar can be added. You may use --force to add the plugin and overwrite the conflicting attributes.
    at PlatformMunger.add_plugin_changes (/opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:150:19)
    at /opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:123:29
    at _fulfilled (/opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:854:54)
    at /opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:877:14
    at runSingle (/opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/opt/NativeBuilder/builds/367db176-088b-4d30-8191-f36f7000b461/source/platforms/android/cordova/node_modules/q/q.js:125:13)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)
Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-snackbar. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-snackbar can be added. You may use --force to add the plugin and overwrite the conflicting attributes.

[2019-12-23T08:52:10.704Z] [ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-snackbar.

Extension of OML is attached .

Thanks

  

Can you walk through the steps you've taken so far?

For reference, this article goes through the process of creating a new Cordova plugin from scratch, but also includes info on wrapping a Cordova plugin as an OutSystem plugin, so it may be helpful in troubleshooting:

https://www.outsystems.com/blog/posts/how-to-create-a-cordova-plugin-from-scratch/

Plugin is working fine when  i use t in hybrid application ,even i run application, it works .

But when i use this plugin in Outsystems ,i am not able to generate apk .

Hi Vivek,


It seems to be an issue with the Cordova component you are trying to use.

https://github.com/dpa99c/cordova-plugin-cloud-settings/issues/5


https://github.com/dpa99c/cordova-plugin-cloud-settings/issues/13


Ajith

Hi Ajit,

I checked the links given by you.

May i know , is there any solution for this problem.