Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.zenglb.downloadinstaller.fileprovider (in package com.xxxx.xxx) is already used by #6

Closed
enjoy-life-5 opened this issue Dec 10, 2019 · 1 comment

Comments

@enjoy-life-5
Copy link

Installation failed with message Failed to finalize session : INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.zxxxxx.xxx==: Can't install because provider name com.zenglb.downloadinstaller.fileprovider (in package com.zjxxxx.xx) is already used by com.xxxx.xxx.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

楼主,项目换了个包名,然后重新打包安装的时候,会出现这个问题,怎么解决?

@AnyLifeZLB
Copy link
Owner

AnyLifeZLB commented Dec 18, 2019

@enjoy-life-5 项目换了包名名要把applicationId 也一起换了(或者你卸载老包也可以老);一台手机的两个App 不可以有个相同的fileprovider存在


    <provider
        android:name=".DownloadInstallerProvider"
        android:authorities="${applicationId}.fileProvider"
        android:exported="false"
        android:grantUriPermissions="true"
        tools:replace="android:authorities">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants