冲突 allowBackup tools:replace

2021-08-31  本文已影响0人  toExploreFuture

集成三方的 sdk 报错

Attribute application@allowBackup value=(false) from AndroidManifest.xml:22:9-36
    is also present at [com.gjiazhe:wavesidebar:1.3] AndroidManifest.xml:12:9-35 value=(true).
    Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:20:5-105:19 to override.

allowBackup:了解一下
tools:replace:了解一下

<application
        android:name=".App"
        android:allowBackup="false"
        tools:replace="android:allowBackup"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.KnowRenting"
        android:usesCleartextTraffic="true">

最后改成这样:作用是把我这个项目所有的依赖的三方SDK 不管他的 allowBackup 是啥全都替换成 android:allowBackup="false" ,保持跟我这个项目的配置一致。

上一篇 下一篇

猜你喜欢

热点阅读