WebsiteBeaver / android-document-scanner

65 stars 48 forks source link

Unable to install more than 1 app with this library due to hardcoded authority #2

Closed JohnyGQD closed 2 years ago

JohnyGQD commented 2 years ago

Whenever you try to install another app with this library, gradle will fail:

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER

List of apks:
[0] '[redacted]\app\build\intermediates\apk\release\app-release.apk'
Installation failed due to: 'Failed to commit install session 742080290 with command cmd package install-commit 742080290. Error: INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.websitebeaver.documentscanner.FileProvider (in package [redacted]) is already used by [redacted]'
Retry
Failed to launch an application on all devices
dmarcs commented 2 years ago

Thanks this is a very good fix