02-26-2019 04:12 AM
We have tried to create a new app with the last mobilesdk and we have received the following error when we have tried to create the second app. The first app works well.
Error: adb: Command failed with exit code 1 Error output:
Failed to install /Proyectos/MobileSDK16510/workspace/testLayers/build/mobile/platforms/android/build/outputs/apk/android-debug.apk: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.test.layers-1: Can't install because provider name com.crypho.localstorage.documents (in package com.test.layers) is already used by com.intergraph.mags]
02-28-2019 04:02 AM
The issue is caused by the file-chooser plugin https://www.npmjs.com/package/cordova-plugin-file-chooser.
There is a solution mentioned:
Note that like a ContentProvider, the DocumentProvider authority must be unique. You should change com.ianhanniballake.localstorage.documents in your Manifest, as well as the LocalStorageProvider.AUTHORITY field.
If you want to change it manually, just search for com.crypho.localstorage.documents and replace it with your app id, e.g. app.id.documents.
The process could be automated, so please report a ticket for it.