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
运行example error #263
Comments
应该是SDK版本差异,估计后面会适配,先把flutter_version来下来改改 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running Gradle task 'assembleDebug'...
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1417:48: Error: Undefined name 'DragAnchor'.
dragAnchor: props['dragAnchor'] ?? DragAnchor.child,
^^^^^^^^^^
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1417:13: Error: No named parameter with the name 'dragAnchor'.
dragAnchor: props['dragAnchor'] ?? DragAnchor.child,
^^^^^^^^^^
/Volumes/Res/Library/flutter/packages/flutter/lib/src/widgets/drag_target.dart:162:9: Context: Found this candidate, but the arguments don't match.
const Draggable({
^^^^^^^^^
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1463:48: Error: Undefined name 'DragAnchor'.
dragAnchor: props['dragAnchor'] ?? DragAnchor.child,
^^^^^^^^^^
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1463:13: Error: No named parameter with the name 'dragAnchor'.
dragAnchor: props['dragAnchor'] ?? DragAnchor.child,
^^^^^^^^^^
/Volumes/Res/Library/flutter/packages/flutter/lib/src/widgets/drag_target.dart:393:9: Context: Found this candidate, but the arguments don't match.
const LongPressDraggable({
^^^^^^^^^^^^^^^^^^
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1838:31: Error: Method not found: 'FocusTrap'.
'FocusTrap': (props) => FocusTrap(
^^^^^^^^^
../flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1843:35: Error: Method not found: 'FocusTrapArea'.
'FocusTrapArea': (props) => FocusTrapArea(
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Where:
Script '/Volumes/Res/Library/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
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 5s
Exception: Gradle task assembleDebug failed with exit code 1
我本地的flutter SDK 如下:
admin@admindeMacBook-Pro example % flutter --version
Flutter 3.7.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 90c64ed42b (3 days ago) • 2023-03-21 11:27:08 -0500
Engine • revision 9aa7816315
Tools • Dart 2.19.5 • DevTools 2.20.1
The text was updated successfully, but these errors were encountered: