具有相同键的多个条目:android:allowBackup=REPLACE和tools:allowBackup=REPLACE

AndroidStudio报错信息

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:processDebugManifest'.
> Multiple entries with same key: android:allowBackup=REPLACE and tools:allowBackup=REPLACE
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

前言

最近再接Topon平台广告,因为要聚合其他广告平台SDK,所有AndroidStudio要依赖很多文件。之前的项目打包Android工程是可以打包出来的。集成Topon广告SDK后就打包报错。我查了很多资料,但是都没有解决掉。一晚上都在抓狂image......。遇到类似问题的道友,希望可以帮助你。

解决办法

我的AndroidMaterial.xml

...
<application
android:name="androidx.multidex.MultiDexApplication"
android:fullBackupContent="false" android:allowBackup="false"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@android:style/Theme.NoTitleBar"
tools:ignore="GoogleAppIndexingWarning,MissingTvBanner"
tools:replace="fullBackupContent,allowBackup">
</application>
...

将这段代码删除掉

tools:replace="fullBackupContent,allowBackup"
posted @   镜子-眼泪  阅读(991)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
欢迎阅读『具有相同键的多个条目:android:allowBackup=REPLACE和tools:allowBackup=REPLACE』

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示