Skip to content

fix: unable to run on flutter latest version #437

@ijogendrajat

Description

@ijogendrajat

Description

❯ flutter run    
Launching lib/main.dart on A015 in debug mode...
../../packages/stac/lib/src/parsers/widgets/stac_dropdown_menu/stac_dropdown_menu_parser.dart:61:25: Error: The argument type 'List<DropdownMenuEntry<dynamic>>' can't be assigned to the parameter type 'List<DropdownMenuEntry<Object>>'.
 - 'List' is from 'dart:core'.
 - 'DropdownMenuEntry' is from 'package:flutter/src/material/dropdown_menu.dart' ('../../../../../Developer/flutter/packages/flutter/lib/src/material/dropdown_menu.dart').
 - 'Object' is from 'dart:core'.
              .toList() ??
                        ^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/ijogendrajat/Developer/flutter/bin/flutter'' finished with non-zero exit value 1

* 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 1m 55s
Running Gradle task 'assembleDebug'...                            116.1s
Error: Gradle task assembleDebug failed with exit code 1

Steps To Reproduce

Flutter version
╰─ ❯ flutter doctor -v
[✓] Flutter (Channel master, 3.41.0-1.0.pre-214, on macOS 26.2 25C56 darwin-arm64, locale en-IN) [1,384ms]
    • Flutter version 3.41.0-1.0.pre-214 on channel master at /Users/ijogendrajat/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b1292de731 (7 days ago), 2026-01-22 03:51:48 -0500
    • Engine revision b1292de731
    • Dart version 3.12.0 (build 3.12.0-56.0.dev)
    • DevTools version 2.54.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration, enable-riscv64

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [1,423ms]
    • Android SDK at /Users/ijogendrajat/Library/Android/sdk
    • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • ANDROID_HOME = /Users/ijogendrajat/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [833ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [6ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (3 available) [6.5s]
    • A015 (mobile)   • 00120647H012929 • android-arm64  • Android 16 (API 36)
    • macOS (desktop) • macos           • darwin-arm64   • macOS 26.2 25C56 darwin-arm64
    • Chrome (web)    • chrome          • web-javascript • Google Chrome 144.0.7559.97
    ! Error: Browsing on the local area network for Jogendra Singh’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [1,077ms]
    • All expected network resources are available.

• No issues found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions