Suggestion: add 'tools:replace=android:authorities'解决
出现的原因是在项目A中依赖了xiag项目B,他们又有相同的字段,因此出现命名冲突。、
解决办法:
在AndroidManifest.xml 的 application 下添加命名空间:
xmlns:tools="http://schemas.android.com/tools"
然后将冲突的名字用tools:replace="android:@@"替换,其中@@就是你冲突的地方的名字。
更加详细的过程如下所示:
下面这个是依赖的项目的provider,其中有字段authorities 和 resource
<providerandroid:name="com.cheetah.cmshow.FileProvider"android:authorities="${applicationId}.bd.provider"android:exported="false"android:grantUriPermissions="true"><meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/ad_file_path" /></provider>
下面的是解决过的provider ,首先添加tools命名空间。,然后在冲突名字前面添加
tools:replace="android:authorities"
tools:replace="android:resource" 即可编译通过。
<applicationandroid:supportsRtl="true"xmlns:tools="http://schemas.android.com/tools">
<providerandroid:name="android.support.v4.content.FileProvider"android:authorities="com.qushuru.fileprovide"android:exported="false"tools:replace="android:authorities"android:grantUriPermissions="true" ><meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/fileprovider_granted_paths"tools:replace="android:resource" /></provider>
Suggestion: add 'tools:replace=android:authorities'解决相关推荐
- Suggestion: add ‘tools:replace=”android:authorities”
版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/AnYuanLzh/article/details/76910498 1.sdk导入的问题 这个sdk ...
- Suggestion: add 'tools:replace=android:value' to meta-data element at AndroidManifest.xml:25:5-2...
记录下来少走些坑吧 一:不管用 tools:replace="android:icon,android:theme" xmlns:tools="http://schema ...
- Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to meta-data element at And
Attribute meta-data#Android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat ...
- AndroidStudio出现tools:replace=android: authorities,tools:replace=android:resource
在做项目的时候需要导入第三方库时碰到这个问题: Error:Execution failed for task ':app:processDebugManifest'. > Manifest m ...
- Manifest merger failed问题:tools:replace=android:theme和tools:replace=android:icon
Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute acti ...
- Android之解决卸载app后再次安装提示room数据库错误
1.问题 目前只有一个google手机之前安装了app,里面有room写的数据库,后面把app卸载了,再次安装新的app(修改了数据库里面的字段),启动奔溃. 2.分析 提示数据库错误,很明显就像以前 ...
- Android studio Suggestion: use tools:overrideLibrary=”jp.wasabeef.blurry” to force usage
异常提示: 应用在Android Studio Build的时候,抛出了如下异常: Error:Execution failed for task ':app:processDebugManifest ...
- android add fragment,fragment中的add和replace方法的区别浅析
使用 FragmentTransaction 的时候,它提供了这样两个方法,一个 add , 一个 replace ,对这两个方法的区别一直有点疑惑. 我觉得使用 add 的话,在按返回键应该是回退到 ...
- Unable to add window——token android.os.BinderProxy@196e65b8 is not valid;is your activit is running?
Caused by: android.view.WindowManager$BadTokenException:Unable to add window--token android.os.Binde ...
最新文章
- PHP Memcached应用实现代码
- 数据服务让业务开发更敏捷
- 零基础入门学习Python(36) 类和对象:继承
- 南洋理工75页最新「深度学习对话系统」大综述论文,最全面概述深度学习对话技术进展...
- .NET 线程问题汇总
- mysql 主备及时_MySQL高可用(二)主备延时如何解决?
- Codeforces Round #260 (Div. 1) C. Civilization(dfs+并查集)
- jboss7 关闭日志打印_使用自定义日志记录处理程序在JBoss AS 7中跟踪SQL语句
- 【转】深度理解C# 的执行原理
- IIS6部署web service完整过程
- 开源数据同步神器——canal
- matlab strel
- win10 安装gym[all]与mujoco的踩坑日志
- Windows环境搭建Web自动化测试框架Watir(基于Ruby)
- 办公软件是计算机吗,什么是办公软件_IT /计算机_资料
- vnc远程控制软件 有哪些vnc远程控制软件推荐
- java实现pdf旋转_基于Java实现PDF文本旋转倾斜
- 【华为机试真题 Python实现】平安果
- UG NX 12鼠标和键盘操作
- 元气骑士如何获得机器人成就皮肤_元气骑士:新版本皮肤上架,隐藏皮肤这样才能获得,其实很简单...
热门文章
- WPF 后台常用属性值设置
- 最新ChatGPT商业网站源码+支持ChatGPT4.0+新增GPT联网功能+支持ai绘画+实时语音识别输入+用户会员套餐
- 用 Python 实现 LDA
- 2个准则,解决人际、团队和客户问题
- ibmMQ-第十四章
- opus in MP4 support is experimental, add ‘-strict -2‘ if you want to use it. Could not write header
- uvex快速入门 Vue.js 应用程序开发的状态管理模式 + 库
- Altiverb 7新采样-​240 Gold plate
- 那一日的思念,望穿秋水
- google/glog 使用