You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1827:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1844:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(
^
../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1940:29: Error: Too few positional arguments: 3 required, 2 given.
layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild));
^
../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2364:54: Error: Too few positional arguments: 3 required, 2 given.
..setPlaceholderDimensions(layoutInlineChildren(
^
../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2377:50: Error: Too few positional arguments: 3 required, 2 given.
_placeholderDimensions = layoutInlineChildren(
^
Target kernel_snapshot_program failed: Exception
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/cc/Downloads/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.
Flutter 在Android Studio 上进行编写,本地修改了gradle 版本和相关SDK,在运行代码的时候提示以上错误。请教一下如何修改代码
OpenIM Server Version
3.8.0
Operating System and CPU Architecture
macOS (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
编译代码
Screenshots Link
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. ../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1827:29: Error: Too few positional arguments: 3 required, 2 given. layoutInlineChildren( ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1844:29: Error: Too few positional arguments: 3 required, 2 given. layoutInlineChildren( ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1940:29: Error: Too few positional arguments: 3 required, 2 given. layoutInlineChildren(width, ChildLayoutHelper.dryLayoutChild)); ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2364:54: Error: Too few positional arguments: 3 required, 2 given. ..setPlaceholderDimensions(layoutInlineChildren( ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:2377:50: Error: Too few positional arguments: 3 required, 2 given. _placeholderDimensions = layoutInlineChildren( ^ Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
Where: Script '/Users/cc/Downloads/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1687
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try: