[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

Solution

Hi Alfio,

If the goal is to set the allow Backup to false, you can also use the OS supported plugin Ciphered Local Storage Plugin.

Greetings,

Jørgen

Solution

Jørgen post wrote:

Hi Alfio,

If the goal is to set the allow Backup to false, you can also use the OS supported plugin Ciphered Local Storage Plugin.

Greetings,

Jørgen

Thanks Jørgen, that works for me.


Hi Guys,

I know that this is an old post but using the solution Ciphered Local Storage is not the solution...

What if i don't want to have my local Storage Ciphered because i don't have sensitive data stored and i don't want to experience the overhead that the plugin introduces?

Pedro Domingues wrote:

Hi Guys,

I know that this is an old post but using the solution Ciphered Local Storage is not the solution...

What if i don't want to have my local Storage Ciphered because i don't have sensitive data stored and i don't want to experience the overhead that the plugin introduces?

Hi Pedro Domingues,

Ya Agree not the right place to continue on the same thread but still, you can start a new discussion :)

Perhaps if it is for just maintaining some data apart using the local storage then even I would recommend going with a native feature like SharedPreferences of Android & iOS.

https://www.outsystems.com/forge/component-overview/5013/