Fair icon indicating copy to clipboard operation
Fair copied to clipboard

flutter sdk 3.5.0 dart 2.19.0 报错如下:

Open chenyuanguang opened this issue 1 year ago • 2 comments

Running Gradle task 'assembleDebug'... ../../../.pub-cache/git/fair-924617e27dce0e8d07de543b4e788a8354021a31/flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1838:31: Error: Method not found: 'FocusTrap'. 'FocusTrap': (props) => FocusTrap( ^^^^^^^^^ ../../../.pub-cache/git/fair-924617e27dce0e8d07de543b4e788a8354021a31/flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1843:35: Error: Method not found: 'FocusTrapArea'. 'FocusTrapArea': (props) => FocusTrapArea( ^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where: Script '/Users/dream/Desktop/sdk/flutter/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1168

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/dream/Desktop/sdk/flutter/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

chenyuanguang avatar Apr 11 '23 09:04 chenyuanguang