title: AndroidManifest error: android:exported needs to be explicitly specified for <activity>
body: <p>When I changed the target and compile SDK version from 30 to 31 I get an error. Something similar to <a href="https://stackoverflow.com/questions/70169206/androidexported-needs-to-be-explicitly-specified-for-activity">this question</a>, but it has no answers.</p>
  <blockquote>
  <p>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 https://developer.android.com/guide/topics/manifest/activity-element#exported for details.</p>
  </blockquote>
  <p>But all activities with intent-filter already have <code>andoird:exported</code> attribute.
  My android-manifest:</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.bsuir.testapp.presentation&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_ADMIN&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_BACKGROUND_LOCATION&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_SCAN&quot; tools:node=&quot;remove&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_SCAN&quot; /&gt;
  
      &lt;application
          android:name=&quot;com.bsuir.testapp.presentation.App&quot;
          android:allowBackup=&quot;true&quot;
          android:label=&quot;@string/app_name&quot;
          android:theme=&quot;@style/Theme.ComposePagination&quot;
          android:supportsRtl=&quot;true&quot;&gt;
  
          &lt;activity
              android:name=&quot;.screens.launchscreen.SplashScreen&quot;
              android:theme=&quot;@style/SplashTheme&quot;
              android:screenOrientation=&quot;portrait&quot;
              android:exported=&quot;false&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;.screens.history.view.HistoryActivity&quot;
              android:label=&quot;@string/history_name&quot;
              android:theme=&quot;@style/Theme.ComposePagination.NoActionBar&quot;
              android:screenOrientation=&quot;portrait&quot;/&gt;
          &lt;activity
              android:name=&quot;.screens.availabledevices.view.AvailableDevicesActivity&quot;
              android:label=&quot;@string/devices_name&quot;
              android:theme=&quot;@style/Theme.ComposePagination.NoActionBar&quot;
              android:screenOrientation=&quot;portrait&quot;/&gt;
          &lt;activity
              android:name=&quot;.screens.settings.view.SettingsActivity&quot;
              android:label=&quot;@string/settings_name&quot;
              android:theme=&quot;@style/Theme.ComposePagination.NoActionBar&quot;
              android:screenOrientation=&quot;portrait&quot;/&gt;
          &lt;activity
              android:name=&quot;.screens.dashboard.view.DashboardActivity&quot;
              android:label=&quot;@string/app_name&quot;
              android:screenOrientation=&quot;portrait&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;&gt;
              &lt;meta-data
                  android:name=&quot;android.support.FILE_PROVIDER_PATHS&quot;
                  android:resource=&quot;@xml/file_provider_paths&quot; /&gt;
          &lt;/provider&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>What could be causing the error?</p>