Flutter_local_notifications issue

Hi,

I am trying to run my project after the upgrade but I am getting issues with gradle. I am using version 16.0.1 even though I tried other lower versions but still getting below error.‘’

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/ameypangaonkar/.pub-cache/hosted/pub.dev/flutter_local_notifications-13.0.0/android/build.gradle' line: 27

* What went wrong:
A problem occurred evaluating project ':flutter_local_notifications'.
> Could not find method coreLibraryDesugaringEnabled() for arguments [true] on object of type com.android.build.gradle.internal.CompileOptions.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1

Can anyone please help me to resolve this?

If that is not you authoring that build, then this is not really the place to ask, but instead you should ask the maintainer of that build.
It seems like that build is not compatible with the Android Gradle plugin version it tries to use, as it tries to call a method on one of its classes that does not exist.