[CookieManagerPlugin] Latest version of the plugin conflicting with Camera Plugin while APK generation 
Question
Forge component 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

Staff
Solution

Hi Shounak,

I have tried generating with mabs version 6.3 and 5.2 as 6.1 is deprecated and didn't receive any errors. Can you try with mabs version 6.3 or is that a problem? 

Thanks!

Hi,

The question is almost a year old when MABS 6.1 was the latest available MABS version.

However with the current MABS 6.3 and 7.0 we are not facing any issues. Thanks for releasing updared versions.

Best regards,

Shounak

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.