具有相同键的多个条目: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后就打包报错。我查了很多资料,但是都没有解决掉。一晚上都在抓狂......。遇到类似问题的道友,希望可以帮助你。
解决办法
我的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"
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架