解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

本文涉及的产品
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
全局流量管理 GTM,标准版 1个月
云解析 DNS,旗舰版 1个月
简介: 解析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



目录
打赏
0
0
0
0
1254
分享
相关文章
Composer 报错 Error while processing content unencoding: Unknown failure within ...
Composer 报错 Error while processing content unencoding: Unknown failure within ...
246 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
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
2895 0
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
|
8月前
|
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
186 0
|
9月前
|
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code
167 0
记录一个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
297 0
成功解决 ProxyError: Conda cannot proceed due to an error in your proxy configuration
关掉win10的代理软件, 没有效果, 想起来代理软件会自动更改ie的代理设置
997 0
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
444 0
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
1223 0
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service
解决方案 --Failed to initialize JPA EntityManagerFactory: Unable to create requested service