具有相同键的多个条目: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"

浙公网安备 33010602011771号