If you are getting the above error while executing the command flutter run or flutter run --release, then you can use the solutions explained below.
Follow the below steps to remove the error
1. Open AndroidManifest.xml file. The location of the file will be - android > app > src > main > AndroidManifest.xml.
2. Add code - android:exported="true" in like below.
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" ...>
3. End
Follow the below steps to remove the error
1. Open AndroidManifest.xml file. The location of the file will be - android > app > src > main > AndroidManifest.xml.
2. Add code - android:exported="true" in like below.
3. End