生成android清单时出错

nbysray5  于 2021-07-06  发布在  Java
关注(0)|答案(2)|浏览(390)

任务“”的执行失败:app:processdebugresources'.
执行com.android.build.gradle.internal.tasks.workers$actionfacade android资源链接失败c:\users\kcs\AndroidStudio项目\ourvedic\app\build\intermediates\packaged\U清单\debug\androidmanifest。xml:11:aapt:error:resource xml/backup\u descriptor(又名com.binni。ourvedic:xml/backup_descriptor)找不到。
这就是我犯的错误
我的代码:

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

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.OURVEDIC"
        android:fullBackupContent="@xml/backup_descriptor">
        <activity android:name=".SplashScreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".MainActivity">

        </activity>

        <meta-data
            android:name="preloaded_fonts"
            android:resource="@array/preloaded_fonts" />
    </application>

</manifest>
tez616oj

tez616oj1#

拆下管路 android:fullBackupContent="@xml/backup_descriptor" 在应用程序中 manifest 文件,或添加所需的 xml 文件到您的项目。

<application
    android:fullBackupContent="@xml/backup_descriptor">
    ...
</application>
pgx2nnw8

pgx2nnw82#

在android studio中,试试这个

File > Invalidate Caches/Restart

相关问题