skip to Main Content

I tried to publish my app in production but I’m facing this issue 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

I also added android:exported="true" in service and activity, still not resolved.

2

Answers


  1. If your startup Activity does not set android:exported, the same will not work.

    Login or Signup to reply.
  2. You can try to add these into your manifest

    <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
    android:exported="true">
         <intent-filter>
             <action android:name="android.intent.action.BOOT_COMPLETED"/>
             <action  android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
         </intent-filter>
     </receiver>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search