Execution failed for task ':app:compileFlutterBuildDebug'

Hi, I am getting error while running my app using flutter run in Android studio:

I have tried executing below commands:
flutter channel stable
flutter upgrade --force
flutter pub cache repair
flutter clean

while executing flutter doctor -v, i am getting below logs:
PS C:\Users\ainn\mobile_app_aish> flutter doctor -v
[√] Flutter (Channel stable, 3.10.3, on Microsoft Windows [Version 10.0.19045.2965], locale en-IN)
• Flutter version 3.10.3 on channel stable at C:\Users\ainn\flutter\flutter
• Upstream repository GitHub - flutter/flutter: Flutter makes it easy and fast to build beautiful apps for mobile and beyond
• Framework revision f92f44110e (2 days ago), 2023-06-01 18:17:33 -0500
• Engine revision 2a3401c9bb
• Dart version 3.0.3
• DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\ainn\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.6.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.6.33723.286
• Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
• Dart plugin can be installed from:
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] VS Code (version 1.78.2)
• Flutter extension version 3.66.0

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2965]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.91

[√] Network resources
• All expected network resources are available.

• No issues found!

I’m not sure why you ask in a Gradle forum.
Your screenshot clearly shows that there are compilation errors because you use a method that does not exist in a dart file.

So while of course the Gradle build fails due to that, it is not a Gradle problem and thus not the right forum to ask about.

You should probably instead ask in some Dart, or Flutter, or Android community, or whatever is appropriate for the problem.

thanks will post in other forums