You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'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
您好,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'.
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'.
BUILD FAILED in 3s
Exception: Gradle task assembleDebug failed with exit code 1
The text was updated successfully, but these errors were encountered: