Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when run the application on Android 12 pixel 4a #1447

Closed
jeniscodesmith opened this issue Jan 8, 2022 · 3 comments
Closed

Issue when run the application on Android 12 pixel 4a #1447

jeniscodesmith opened this issue Jan 8, 2022 · 3 comments

Comments

@jeniscodesmith
Copy link

jeniscodesmith commented Jan 8, 2022

Bug
when I run app on android 12 version phone its throw an error which I defined below.

CONSOLE ERROR
adb: failed to install D:\CodeSmith\Flutter Projects\home_xp\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1863689627.tmp/base.apk (at Binary XML file line #206): 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 4a.

I have defined this in my androidmanifest.XML

  <service
           android:name="com.dexterous.flutterlocalnotifications.ForegroundService"
           android:exported="false"
           android:stopWithTask="false"/>


@MaikuB
Copy link
Owner

MaikuB commented Jan 9, 2022

What version of the plugin are you using? Please make sure you are on recent version of the plugins prior to reporting a bug. 9.0.0 addressed compatibility issues with Android 12 and the error you reported is what happened with older versions of the plugin

@MaikuB
Copy link
Owner

MaikuB commented Jan 18, 2022

Closing due to lack of response and the plugin has already done the appropriate changes required for Android 12 a while. Issue is likely due to using an old version of the plugin

@MaikuB MaikuB closed this as completed Jan 18, 2022
@aminshafieed
Copy link

aminshafieed commented Feb 2, 2022

on android 12 you should change AndroidManifest intent
"You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported"

<application> <receiver android:name="com.dexterous.flutterlocalnotifications.ActionBroadcastReceiver" /> <receiver android:exported="true" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> <receiver android:exported="true" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver> </application>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants