1

enter image description hereI already added << android:exported="true">> on AndroidMainifest.xml file, but it's still show error: You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported

Here sample code on AndroidMainifest.xml

<activity
        android:name=".MainActivity"
        android:exported="true"
        android:label="@string/app_name"
        tools:node="merge"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <meta-data
            android:name="io.flutter.embedding.android.NormalTheme"
            android:resource="@style/NormalTheme"
            />
        <intent-filter>
            <action android:name="FLUTTER_NOTIFICATION_CLICK" />
            <category android:name="android.intent.category.DEFAULT" />

Thank you and waiting for your help.

Yashraj
  • 1,025
  • 1
  • 5
  • 22
sreng bona
  • 303
  • 5
  • 14

1 Answers1

0

I solve it by added android:exported="true" to all activity, service,... that have intent-filter inside on androidMainifest.xml included file libraries also need to add android:exported="true".

Possible search for all <intent-filter> then select scope tag (if you use android studio IDE) then add android:exported="true" to all activity, service,... that have intent-filter inside.

sreng bona
  • 303
  • 5
  • 14