Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter sdk 3.5.0 dart 2.19.0 报错如下: #278

Open
chenyuanguang opened this issue Apr 11, 2023 · 2 comments
Open

flutter sdk 3.5.0 dart 2.19.0 报错如下: #278

chenyuanguang opened this issue Apr 11, 2023 · 2 comments

Comments

@chenyuanguang
Copy link

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.

@zcb1603999
Copy link

我也遇到了,应该是flutter sdk版本差异,估计后面会适配,可以把flutter_version拉下来改一下

@yajuncao
Copy link

相同问题:环境(Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c07f788888 (4 months ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1)

Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): ../../../.pub-cache/git/fair-545ba3db0c04476fe3de0006c869b70c16665d7a/flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1417:48: Error: Undefined name 'DragAnchor'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants