[allowBackup Android Plugin] Error when generating APK

Forge Component
(4)
Published on 2018-05-04 by Miguel 'Kelter' Antunes
4 votes
Published on 2018-05-04 by Miguel 'Kelter' Antunes

Hi,

I am trying to install the allowBackUp Android plugin and I get the below error in the build log:

Failed to install 'cordova-plugin-allow-backup': Error: There was a conflict trying to modify attributes with <edit-config> in plugin cordova-plugin-allow-backup. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-allow-backup can be added. You may use --force to add the plugin and overwrite the conflicting attributes.
    at PlatformMunger.add_plugin_changes (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:150:19)
    at /opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:123:29
    at _fulfilled (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/q/q.js:816:13)
    at /opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/q/q.js:877:14
    at runSingle (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/source/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/opt/NativeBuilder/builds/1a462c79-aa85-4a4a-8082-90a94a847f16/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-allow-backup. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before cordova-plugin-allow-backup can be added. You may use --force to add the plugin and overwrite the conflicting attributes.


This is the only plugin that I am using in the app I am generating, so the possible cause that is mentioned in Felipe Silva's post does not seem to apply here.

Looking forward for any suggestions.

Regards,
Alfio Esposito

Hi ,

Are you using the MABS Version 5.0 to generate Builds, If yes then check whether this plugin supports the latest MABS Version 5.0 or Try to degrade the MABS Version & have trial.


Thanks