赞
踩
接入 极光IM 使用 jcenter 自动集成 清单文件一直出现 Manifest merger failed 已经知道是 某处的 android:exported属性有冲突
具体错误1:
Error:
tools:replace specified at line:44 for attribute android:exported, but no new value specified
具体错误2:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute provider#cn.jpush.android.service.DataProvider@exported value=(false) from [cn.jiguang.sdk:jpush:3.1.1] AndroidManifest.xml:116:13-37
is also present at [cn.jiguang.sdk:jmessage:2.4.1] AndroidManifest.xml:100:13-36 value=(true).
Suggestion: add 'tools:replace="android:exported"' to <provider> element at AndroidManifest.xml:113:9-116:40 to override.
从网上看到解决是在
清单文件 application 节点添加 android:exported
tools:replace="android:exported" 但是没用
打开 as右下角 Gradle Console 获取详细报错
仔细看会发现 as已经建议将,严格根据这里的说明在对应的位置设置一下
在<provider> 节点下 设置tools:replace="android:exported"
解决
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。