MaikuB / flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.47k stars 1.4k forks source link

Error bigPictureStyle.bigLargeIcon(null) v17.1.2 #2329

Closed JaTocora closed 4 months ago

JaTocora commented 5 months ago

flutter_local_notifications-17.1.2/android/src/main/java/com/dexterous/flutterlocalnotifications/FlutterLocalNotificationsPlugin.java:1033: error: reference to bigLargeIcon is ambiguous bigPictureStyle.bigLargeIcon(null); ^ both method bigLargeIcon(Bitmap) in BigPictureStyle and method bigLargeIcon(Icon) in BigPictureStyle match

godzyken commented 5 months ago

pareil quelqu'un à t'il resolu ce probleme?

MaikuB commented 5 months ago

Whilst I understand why you're seeing this, this isn't something I've seen that can reproduced and hasn't happened via the pipelines. I suspect it might be an issue specific with the Android SDK you're using

ducdx-0072 commented 4 months ago

I faced this problem too, and I don't understand the reason ;(

MaikuB commented 4 months ago

Which versions of the Android SDK do you have installed? I only have the ones for Android 13 and 14 installed and don't have this issue

godzyken commented 4 months ago

J'ai aussi 13 et 14

Envoyé à partir de Outlook pour Androidhttps://aka.ms/AAb9ysg


From: Michael Bui @.> Sent: Friday, June 28, 2024 7:52:51 AM To: MaikuB/flutter_local_notifications @.> Cc: Dore Emryck @.>; Comment @.> Subject: Re: [MaikuB/flutter_local_notifications] Error bigPictureStyle.bigLargeIcon(null) v17.1.2 (Issue #2329)

Which versions of the Android SDK do you have installed? I only have the ones for Android 13 and 14 installed and don't have this issue

— Reply to this email directly, view it on GitHubhttps://github.com/MaikuB/flutter_local_notifications/issues/2329#issuecomment-2196191852, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH5D2QRQISSBQ2DYJJUQ6PDZJT23HAVCNFSM6AAAAABIJFCMQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGE4TCOBVGI. You are receiving this because you commented.Message ID: @.***>

MaikuB commented 4 months ago

@godzyken could you write in English please?

mark8044 commented 4 months ago

@godzyken could you write in English please?

I just had this issue for the first time today.

I was on master branch Flutter 3.23.0-13.0.pre.300 and 17.1.2 perfectly fine, then upgraded to master branch Flutter 3.23.0-13.0.pre.370 and I got the error.

I moved to 17.2.0 and it still occurrs

I downgraded to master branch Flutter 3.23.0-13.0.pre.300 and its gone.

This only occurs on Android. I did not change anything with android SDK (Platform android-34, build-tools 34.0.0). iOS remains ok.

I think something has changed in latest flutter framework, so I believe this needs attention

EDIT: Bisecting the issue: Commit f23dbc50f05c56ef5be871203bb4f167f07df845 is BAD (6/26/24) Commit 69ff23b3debe9ce1e447439557c09c0bf84bb24b is OK (6/26/24) Commit 2d02215080e8cc36b4f5c8287f6935525fa3c643 is OK (6/26/24)

Therefor I believe the issue is caused with flutter PR https://github.com/flutter/flutter/pull/150952 That PR is a rabbit hole of rolled changes

gnprice commented 4 months ago

Very helpful, thanks @mark8044 for bisecting!

That commit changes bin/internal/engine.version from flutter/engine@d1506c12808ec42e1b277376c4c2b1bd4ec20ac7 to flutter/engine@ddd4814b9d407962eee4dc52919e3abddb0c3641.

Looking at the Git log between those, it's just three commits: flutter/engine@3f40c6875 Fix AccessibilityFeatures.disableAnimations flag on Android 12+ (flutter/engine#53428) flutter/engine@7ccef46a8 Roll Skia from dee7339d0b53 to c73e514838b4 (7 revisions) (flutter/engine#53613) flutter/engine@ddd4814b9 Re-re-re-land "Upgrade all[most] androidx dependencies to latest" (flutter/engine#53592)

Seems like the last one is the most likely to be related. It's upgrading a long list of AndroidX dependencies.

khaled-0 commented 3 months ago

exact error is back on flutter 3.24? I just saw one of our CI fail with this error I'll report back with more info soon

Ko-Dean commented 3 months ago

I too have similar problem when I run flutter build appbundle. flutter build version 3.24

Using flutter_local_notifications: ^17.2.1+2 is no problem

gnprice commented 3 months ago

Yes, the issue was fixed in #2355 which went out in flutter_local_notifications 17.2.1. If you're seeing the issue on an older version, you need to upgrade.

cyberpwnn commented 3 months ago

Its is very much not fixed

gnprice commented 3 months ago

@cyberpwnn If you include details of what you're seeing, that can make it possible for someone to act on your report.

Volko61 commented 3 months ago

@gnprice @cyberpwnn I have the same error image

image

gnprice commented 3 months ago

@Volko61 Your error message shows you're using version 12.0.4 of this library. That is older than the fix for this issue. I recommend upgrading.

(Upgrading your dependencies is a good idea in general ­— but in particular when there's a bug that's been fixed and you want the fix, upgrading is the way you get the fix.)

Volko61 commented 3 months ago

Unfortunately I can't due to to conflicting dependencies. However, I edited the java file to cast and handle null and now it is working

SwamyDigitalRaiz commented 2 months ago

@gnprice @cyberpwnn I have the same error image

image

same issue

benardelia commented 2 months ago

I got this error after update the flutter to the latest release, simply i upgrade the flutter local notification package to the last release.

You can do one of these, down grade flutter to the release that working fine or upgrade the package to the last release.

theranjithmenon commented 2 months ago

I too got this after updating to latest flutter version. Just update the 'flutter_local_notifications' to latest version.

ahmedevcode commented 2 months ago

I too have similar problem when I run flutter build appbundle. flutter build version 3.24

Using flutter_local_notifications: ^17.2.1+2 is no problem

thanks this solution slove my issus

Mohamed-Essam-Mohamed commented 2 months ago

I too have similar problem when I run flutter build appbundle. flutter build version 3.24

Using flutter_local_notifications: ^17.2.1+2 is no problem

thanks this solution solve my issues.

nbo001 commented 1 month ago

Just update the 'flutter_local_notifications' to latest version solve this issue

HabunoGD1809 commented 3 weeks ago

I too have similar problem when I run flutter build appbundle. flutter build version 3.24

Using flutter_local_notifications: ^17.2.1+2 is no problem

Thank' you 🥇