[CookieManagerPlugin] Latest version of the plugin conflicting with Camera Plugin while APK generation

Forge Component
(2)
Published on 2019-12-05 by Experts
2 votes
Published on 2019-12-05 by Experts

Hi Experts Team,

I have observed that the latest version of the Cookie Manager Plugin is having conflict with that of the resources used by the Camera Plugin while generating the APK for the application. This happens when both the plugins are being used in the same mobile application. Given below is the error that I found while generating the APK with MABS 6.1:

Failed to install 'cordova-plugin-cookieemperor': Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-cookieemperor. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-cookieemperor can be added. You may use --force to add the plugin and overwrite the conflicting attributes.
    at PlatformMunger.add_plugin_changes (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:150:19)
    at /opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:123:29
    at _fulfilled (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:877:14
    at runSingle (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/opt/NativeBuilder/builds/7d1e2b89-7e25-4d3e-af67-163d159a6f7f/source/platforms/android/cordova/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickCallback (internal/process/next_tick.js:181:9)
Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-cookieemperor. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-cookieemperor can be added. You may use --force to add the plugin and overwrite the conflicting attributes.

[2020-04-12T12:46:36.939Z] [ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-cookieemperor.

Please update the plugin in order to resolve this issue.

Regards,

Shounak