title: Targeting android 12 failed with error of `android:exported`
body: <p><a href="https://i.stack.imgur.com/S7iGG.png" rel="nofollow noreferrer">after setting android:exported still got this error of 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</a>After setting all components on Manifest, still receive an error of &quot;Error:
  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.&quot;</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.easymountain.quechua&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.CALL_PHONE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.WAKE_LOCK&quot; /&gt;
  
  &lt;!--    &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;--&gt;
  &lt;!--        &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;--&gt;
  &lt;!--            tools:ignore=&quot;ScopedStorage&quot; /&gt;--&gt;
  &lt;!--    &lt;uses-permission--&gt;
  
      &lt;uses-permission
          android:name=&quot;android.permission.CLEAR_APP_CACHE&quot;
          tools:ignore=&quot;ProtectedPermissions&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS&quot; /&gt;
      &lt;uses-permission android:name=&quot;com.huawei.permission.external_app_settings.USE_COMPONENT&quot; /&gt;
      &lt;uses-permission android:name=&quot;oppo.permission.OPPO_COMPONENT_SAFE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_PHONE_STATE&quot; /&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS&quot; /&gt;
      &lt;uses-permission android:name=&quot;com.huawei.permission.external_app_settings.USE_COMPONENT&quot; /&gt;
      &lt;uses-permission android:name=&quot;oppo.permission.OPPO_COMPONENT_SAFE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.FOREGROUND_SERVICE&quot; /&gt;
  
  
      &lt;application
          android:name=&quot;.base.BaseApplication&quot;
          android:allowBackup=&quot;false&quot;
          android:fullBackupContent=&quot;false&quot;
          android:hardwareAccelerated=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:installLocation=&quot;internalOnly&quot;
          android:label=&quot;@string/screen_app_name&quot;
          android:largeHeap=&quot;true&quot;
          android:requestLegacyExternalStorage=&quot;true&quot;
          android:networkSecurityConfig=&quot;@xml/network_security_config&quot;
          android:screenOrientation=&quot;portrait&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;
          android:usesCleartextTraffic=&quot;true&quot;
          tools:replace=&quot;android:name,android:hardwareAccelerated,android:allowBackup,android:label&quot;&gt;
  
  
          &lt;!--        SDKNAVIGATION      --&gt;
  
          &lt;activity
              android:name=&quot;com.easymountain.quechua.ui.sdknavigation.MpMainActivity&quot;
              android:configChanges=&quot;orientation|screenSize|locale&quot;
              android:exported=&quot;true&quot;
              android:screenOrientation=&quot;portrait&quot;
              tools:node=&quot;merge&quot;
              android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.net.conn.CONNECTIVITY_CHANGE&quot; /&gt;
                  &lt;action android:name=&quot;android.net.wifi.WIFI_STATE_CHANGED&quot; /&gt;
                  &lt;action android:name=&quot;android.intent.action.MANAGE_NETWORK_USAGE&quot; /&gt;
  
                  &lt;data android:scheme=&quot;geo&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;service
              android:name=&quot;com.easymountain.quechua.ui.sdknavigation.navigation.delegate.MpTraceRecorder&quot;
              android:foregroundServiceType=&quot;location&quot;
              android:exported=&quot;true&quot;
              android:permission=&quot;android.permission.BIND_JOB_SERVICE&quot; /&gt;
  
          &lt;activity
              android:name=&quot;com.easymountain.quechua.ui.sdknavigation.poinative.fragment.MpVideoPlayerFullScreenActivity&quot;
              android:configChanges=&quot;keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode&quot;
              android:screenOrientation=&quot;landscape&quot;
              android:exported=&quot;false&quot;
              android:theme=&quot;@style/VideoPlayerTheme&quot; /&gt;
  
          &lt;!--        &lt;activity--&gt;
          &lt;!--            android:name=&quot;com.onegravity.contactpicker.core.ContactPickerActivity&quot;--&gt;
          &lt;!--            android:enabled=&quot;true&quot;--&gt;
          &lt;!--            android:exported=&quot;false&quot;&gt;--&gt;
  
          &lt;!--            &lt;intent-filter&gt;--&gt;
          &lt;!--                &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;--&gt;
          &lt;!--                &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;--&gt;
          &lt;!--            &lt;/intent-filter&gt;--&gt;
          &lt;!--        &lt;/activity&gt;--&gt;
  
          &lt;meta-data
              android:name=&quot;preloaded_fonts&quot;
              android:resource=&quot;@array/preloaded_fonts&quot; /&gt;
  
          &lt;!--        SDKNAVIGATION --&gt;
  
  
          &lt;activity
              android:name=&quot;.ui.splash.SplashActivity&quot;
               android:screenOrientation=&quot;portrait&quot;
              android:exported=&quot;true&quot;
              tools:node=&quot;merge&quot;
              android:theme=&quot;@style/AppTheme.NoActionBarSplash&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;.ui.authentification.AuthWebViewActivity&quot;
              android:exported=&quot;false&quot;
              android:theme=&quot;@style/Theme.AppCompat.Light.NoActionBar&quot;&gt;
  
          &lt;/activity&gt;
          &lt;activity
              android:name=&quot;.ui.main.MainActivity&quot;
               android:configChanges=&quot;orientation&quot;
               android:screenOrientation=&quot;portrait&quot;
              android:launchMode=&quot;singleTop&quot;
              android:theme=&quot;@style/Theme.AppCompat.Light.NoActionBar&quot;
              android:windowSoftInputMode=&quot;stateAlwaysHidden|adjustPan|adjustResize&quot;
              android:exported=&quot;true&quot;
              tools:node=&quot;merge&quot;
              tools:ignore=&quot;LockedOrientationActivity&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
  
                  &lt;data
                      android:scheme=&quot;quechuahikefinder&quot; /&gt;
              &lt;/intent-filter&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;quechuahikefindermobileapplication.HANDLE_AUTHORIZATION_RESPONSE&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=&quot;net.openid.appauth.RedirectUriReceiverActivity&quot;
              android:exported=&quot;true&quot;
              tools:node=&quot;merge&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
  
                  &lt;data
                      android:host=&quot;login&quot;
                      android:scheme=&quot;quechuahikefinder&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;meta-data
              android:name=&quot;com.google.android.maps.v2.API_KEY&quot;
              android:value=&quot;@string/mp_google_map_api_key&quot; /&gt;
          &lt;meta-data
              android:name=&quot;com.facebook.sdk.ApplicationId&quot;
              android:value=&quot;@string/facebook_app_id&quot;
              tools:replace=&quot;android:value&quot; /&gt;
  
          &lt;provider
              android:name=&quot;androidx.core.content.FileProvider&quot;
              android:authorities=&quot;${applicationId}.provider&quot;
              android:exported=&quot;false&quot;
              android:grantUriPermissions=&quot;true&quot;
              tools:replace=&quot;android:authorities&quot;&gt;
              &lt;meta-data
                  android:name=&quot;android.support.FILE_PROVIDER_PATHS&quot;
                  android:resource=&quot;@xml/provider_paths&quot;
                  tools:replace=&quot;android:resource&quot;/&gt;
          &lt;/provider&gt;
  
          &lt;service
              android:name=&quot;.service.MyFirebaseMessagingService&quot;
              android:exported=&quot;false&quot;
              android:stopWithTask=&quot;false&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;com.google.firebase.MESSAGING_EVENT&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
          &lt;receiver android:name=&quot;.ui.utils.gpsStatusListener.GpsLocationReceiver&quot;
              android:exported=&quot;true&quot;
              tools:node=&quot;merge&quot;
              tools:ignore=&quot;Instantiatable&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.location.PROVIDERS_CHANGED&quot; /&gt;
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
          &lt;provider
              android:name=&quot;androidx.work.impl.WorkManagerInitializer&quot;
              android:authorities=&quot;com.decathlon.quechuafinder.workmanager-init&quot;
              android:exported=&quot;false&quot;
              tools:node=&quot;remove&quot; /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>