title: I set android:exported but I am still getting error: android:exported needs to be explicitly specified for <receiver>
body: <p>I am moving from SDK version 30 to 31 and I add android:exported in intent-filter but still I am getting this error:</p>
  <p>Merging Errors: Error: android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for <code>android:exported</code> when the corresponding component has an intent filter defined. See <a href="https://developer.android.com/guide/topics/manifest/activity-element#exported" rel="nofollow noreferrer">https://developer.android.com/guide/topics/manifest/activity-element#exported</a> for details.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      package=&quot;com.mycompany.webviewapp&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;
  
      &lt;application
          android:name=&quot;.App&quot;
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;&gt;
          &lt;!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 --&gt;
          &lt;meta-data
              android:name=&quot;com.google.android.gms.ads.APPLICATION_ID&quot;
              android:value=&quot;ca-app-pub-3940256099942544~3347511713&quot;/&gt;
  
          &lt;activity android:name=&quot;com.mycompany.webviewapp.SplashActivity&quot;
              android:exported=&quot;true&quot;
              android:screenOrientation=&quot;portrait&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=&quot;com.mycompany.webviewapp.MainActivity&quot;
              android:exported=&quot;true&quot;
              android:screenOrientation=&quot;portrait&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
                  &lt;action android:name=&quot;android.intent.action.VIEW&quot;&gt;&lt;/action&gt;
              &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  
          &lt;service android:name=&quot;com.mycompany.webviewapp.FCM.MyFirebaseMessagingService&quot;&gt;
  
          &lt;/service&gt;
  
          &lt;meta-data android:name=&quot;applovin.sdk.key&quot;
              android:value=&quot;sdk api here&quot;/&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>