Skip to content

关于provider相同无法安装的问题解决 #34

@zhangloveyan

Description

@zhangloveyan

描述:手机上已有一个app使用本库的依赖,当你app在用这个库的依赖时,由于使用了provider,会检测到INSTALL FAILED CONFLICTING PROVIDER 问题,安装失败。
解决方法:将本库下载到本地,导入作为项目依赖,修改2个地方
1、AndroidManifest中的android:authorities="xx"的值(xx为你改后的值)。
2、常量类TConstant中的public final static String FILE_PROVIDER="xx"的值(与1中的值保持一致)。
重新编译,就ok了。
望作者采纳。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions