当前位置:   article > 正文

一个Android工程依赖了一个有 AndroidManifest.xml出现的错误_安卓[gdtsdk.unionnormal.4.514.1384.aar] androidmanif

安卓[gdtsdk.unionnormal.4.514.1384.aar] androidmanifest.xml:46:13-56 value=(

出现的错误如下:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:10:9-40
is also present at [Call:calllibrary:unspecified] AndroidManifest.xml:17:9-65 value=(@style/Theme.AppCompat.Light.NoActionBar).
Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:5:5-18:19 to override.





解决办法:

在主项目的application节点添加

 tools:replace="android:icon",然后会提示导一句话
tagxmlns:tools="http://schemas.Android.com/tools"
,重新编译一下就可以了

位置如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.hzjiteng.call">
    tagxmlns:tools="http://schemas.Android.com/tools"




声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/824165
推荐阅读
相关标签
  

闽ICP备14008679号