解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

简介: 解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

image.png

程序运行安装不上,提示如上图。


提示是要卸载一个已经存在的application,虽然开发着几个项目,但是包名都不一样,没道理啊。clean、build也都没用。


后来在Stack Overflow上找到回答,大概意思:在AndroidManifest.xml文件中,provider中的android:authorities的值必须是唯一的。多个项目引用同一个类库(Module),就无法同时安装了,因为android:authorities的值是相同的。


经过检查发现,几个项目都引用了友盟的PushSDK,而AndroidManifest.xml中provoder的authorities值还没有改。


只要把applicationId换成自己的包名就好了,这个地方在友盟的官方文档中也有提到。


以此类推,你的项目不一定是PushSDK。

image.png



目录
相关文章
|
17天前
|
消息中间件
mq安装出现的问题 Unable to load crypto library. Failed with error:
mq安装出现的问题 Unable to load crypto library. Failed with error:
17 0
|
8月前
|
缓存 PHP
Composer 报错 Error while processing content unencoding: Unknown failure within ...
Composer 报错 Error while processing content unencoding: Unknown failure within ...
133 0
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
|
3月前
|
机器学习/深度学习 Java Android开发
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
记录一个Flutter运行的异常FAILURE: Build failed with an exception. What went wrong: A problem occurred config
46 0
|
4月前
|
Kubernetes 容器
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
35 0
|
11月前
|
Python
成功解决 ProxyError: Conda cannot proceed due to an error in your proxy configuration
关掉win10的代理软件, 没有效果, 想起来代理软件会自动更改ie的代理设置
612 0
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
116 0
|
Shell
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
823 0
|
网络协议 关系型数据库 Linux
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
onfigure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
145 0