-
Notifications
You must be signed in to change notification settings - Fork 25
Description
您好,clone代码 后运行出现下面的错误 请问改怎么处理? 我是flutter新手
Resolving dependencies...
collection 1.17.2 (1.18.0 available)
cupertino_icons 1.0.5 (1.0.6 available)
dio 4.0.6 (5.3.2 available)
flutter_lints 1.0.4 (2.0.3 available)
flutter_screenutil 5.6.1 (5.9.0 available)
flutter_spinkit 5.1.0 (5.2.0 available)
intl 0.17.0 (0.18.1 available)
lints 1.0.1 (2.1.1 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.9.1 (1.10.0 available)
plugin_platform_interface 2.1.4 (2.1.6 available)
pretty_dio_logger 1.2.0-beta-1 (1.3.1 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
test_api 0.6.0 (0.6.1 available)
typed_data 1.3.1 (1.3.2 available)
webview_flutter 3.0.4 (4.2.4 available)
webview_flutter_android 2.10.4 (3.9.5 available)
webview_flutter_platform_interface 1.9.5 (2.6.0 available)
webview_flutter_wkwebview 2.9.5 (3.7.4 available)
Got dependencies!
Launching lib/main.dart on sdk gphone arm64 in debug mode...
Running Gradle task 'assembleDebug'...
../../.pub-cache/hosted/pub.dev/flutter_screenutil-5.6.1/lib/src/screen_util.dart:64:16: Error: The getter 'viewConfiguration' isn't defined for the class 'FlutterView'.
- 'FlutterView' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'viewConfiguration'.
if (window.viewConfiguration.geometry.isEmpty) {
^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
-
Where:
Script '/Users/xiehuanqing/Documents/tools/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1297 -
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/xiehuanqing/Documents/tools/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 3s
Exception: Gradle task assembleDebug failed with exit code 1