首页 > 解决方案 > 由于 AndroidManifest.xml 无法构建应用程序

问题描述

当我尝试运行我的代码时,我最终遇到了这些错误。我试图将这些值更改为 true,但每次我重建它时,它都会被删除。有什么建议么?谢谢!

这是代码:

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

<uses-sdk
        android:minSdkVersion="24"
        android:targetSdkVersion="30" />

    <application
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:debuggable="true"
        android:extractNativeLibs="false"
        android:fullBackupContent=""
        android:icon="@drawable/ic_launcher_background"
        android:label="@string/app_name"
        android:testOnly="true" >
        <activity
            android:name="com.ninepinnapp.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

</manifest>

错误

在此处输入图像描述

标签: androidandroid-studioerror-handlingandroid-manifest

解决方案


android:fullBackupContent不能为空。将其设置为truefalse


推荐阅读