gpt4 book ai didi

android - 具有相同 key 的多个条目 : android:allowBackup=REPLACE and android1:allowBackup=REPLACE

转载 作者:太空狗 更新时间:2023-10-29 15:59:20 26 4
gpt4 key购买 nike

我在编译项目时面临下面的使用

错误日志如下

Error:Execution failed for task ':sampleproject:processDebugAndroidTestManifest'.
> java.lang.IllegalArgumentException: Multiple entries with same key: android:allowBackup=REPLACE and android1:allowBackup=REPLACE

AndroidManifest.XML

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.sample.mini" >

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />

<uses-sdk tools:overrideLibrary="com.sample.toolkit.payment"/>

<application
android:allowBackup="false"
android:icon="@mipmap/icn_app"
android:label="@string/app_name"
android:largeHeap="true"
android:supportsRtl="false"
android:theme="@style/MaterialTheme"
tools:replace="android:label, theme, allowBackup, android:icon,android:supportsRtl">


<activity
android:name="com.sample.SwiftActivity"
android:screenOrientation="portrait"
android:theme="@style/MaterialTheme" />

<activity
android:name="com.activities.TermsAndConditionActivity"
android:screenOrientation="portrait"
android:theme="@style/MaterialTheme" />


</application>


</manifest>

最佳答案

尝试从 tools:replace 列表中删除空格。

tools:replace="android:label,theme,allowBackup,android:icon,android:supportsRtl"

这为我修复了构建错误,但我仍在尝试找出为什么忽略空格后的条目

关于android - 具有相同 key 的多个条目 : android:allowBackup=REPLACE and android1:allowBackup=REPLACE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42291423/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com