Fatema Almuslem
Fatema Almuslem

Reputation: 1

AAPT: error: '' is incompatible with attribute allowBackup (attr) boolean

this is my code with the following error how can i fix it ?? (AAPT: error: '' is incompatible with attribute allowBackup (attr) boolean.) and i have message that say (files under the "build" folder are generated and should not be edited)

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

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

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup=""
        android:appComponentFactory="androidx.core.app.CoreComponentFactory"
        android:debuggable="true"
        android:fullBackupContent="@xml/backup_descriptor"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:testOnly="true"
        android:theme="@style/Theme.BrokerSystem" >
        <activity android:name="com.example.brokersystem.completTrans" />
        <activity
            android:name="com.example.brokersystem.terms1"
            android:label="@string/title_activity_terms1"
            android:theme="@style/Theme.BrokerSystem.NoActionBar" />
        <activity android:name="com.example.brokersystem.forgPass" />
        <activity android:name="com.example.brokersystem.singUp" />
        <activity android:name="com.example.brokersystem.welcom" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

</manifest>

Upvotes: 0

Views: 2591

Answers (2)

reyza reyznata
reyza reyznata

Reputation: 83

I got the same problem and it worked for me

try to delete: android:fullBackupContent="" in AndroidManifest.xml and let the

android:allowBackup="true" get warning.

Upvotes: 2

Kim Hallberg
Kim Hallberg

Reputation: 1265

The attribute allowBackup should have a boolean value inside it, either true or false. Set it to which you prefer and the error should disappear.

android:allowBackup="true"

android:allowBackup="false"

Source: allowBackup documentation.

Upvotes: 1

Related Questions