Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:24

Android :Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:24:9-36       is also present at [com.wobiancao:imagenice9lib:1.0.1] AndroidManifest.xml:10:9-35 value=(true).

添加依赖报错。

解决方法:

在AndroidManifest.xml中加入xmlns:tools="http://schemas.android.com/tools

<manifest package="你的包名"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools">

然后在application节点添加:

参考:

 <application
        android:name=".common.你的Application"
        android:allowBackup="false"
        tools:replace="android:allowBackup"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:roundIcon="@mipmap/ic_launcher"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true"
        tools:targetApi="n">
 <application
            tools:replace="android:allowBackup">

若超过一个可以这样写:

<application
        tools:replace="android:icon,android:allowBackup">

错误场景相关案例:

仿Nice首页图片列表9图样式,并实现拖拽效果

https://github.com/wobiancao/ImageNice9Layout

阿里巴巴推出的一个RecyclerView得扩展库vlayout

https://github.com/alibaba/vlayout

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值