I'm struggling with the error below.
adb: failed to install F:\xxx\src\FlutterDemoApp\FlutterDemoApp\build\app\outputs\flutter-apk\app.
apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1942767517.tmp/base.apk (at Binary XML file line #102):
com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]
Error launching application on Pixel 4 XL.
As I found at Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present] and Android Studio error: "Manifest merger failed: Apps targeting Android 12" this is simply a matter of adding android:exported="true" to android/app/src/main/AndroidManifest.xml
But the issue is it is already there in my environment and I still get the error.
Am I missing something else?
I tried cleaning the project & changing package names to lowercase as advised in the comments. But nothing worked. Below is what worked for me. Hope somebody fined this helpful.
I had to add Multi Dex support to my build.gradle
and
}
Not exactly sure why this work, but you can read more here https://developer.android.com/studio/build/multidex