如何处理与AppsFlyer的冲突文件?

当使用Vungle Android SDK 6.9.0以下的版本(并不包括6.9.0)与AppsFlyer SDK在进行编译时,会出现如下问题:

> Manifest merger failed : Attribute application@fullBackupContent value=(@xml/appsflyer_backup_rules) from [:com.appsflyer.af-android-sdk-5.4.1:] AndroidManifest.xml:14:18-73
  	is also present at [:com.vungle.publisher-sdk-android-6.7.0:] AndroidManifest.xml:6:16-67 value=(@xml/vungle_backup_rule).
  	Suggestion: add 'tools:replace="android:fullBackupContent"' to <application> element at AndroidManifest.xml:5:3-59:17 to override.

我们会在Vungle Android SDK 6.9.0版本(此版本还未发布)上对这个问题进行修复。鉴于目前,我们提供一个解决方案:

1.创建一个 backup_rule.xml 文件在项目的res/xml目录下,如果没有xml目录,可自己创建一个。

2.在backup_rule.xml文件里添加如下内容:

<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<exclude domain="file" path="vungle" />
<exclude domain="file" path="vungle_cache" />
<exclude domain="external" path="vungle_cache" />
<exclude domain="database" path="vungle_db" />
<exclude domain="sharedpref" path="com.vungle.sdk.xml" />
</full-backup-content>

3.在Androidmanifest.xml文件里添加如下两个标签:

mceclip0.png

Powered by Creativity Driven by Performance Sign Up Here

Questions?

Need further assistance, feel free to reach out to us, we’re here to help!

这篇文章有帮助吗?