openimsdk / open-im-flutter-demo

Demo developed based on flutter open IM SDK.
https://openim.io
Apache License 2.0
310 stars 208 forks source link

[BUG] Build Failed Error: Too few positional arguments: 3 required, 2 given. _placeholderDimensions = layoutInlineChildren( #116

Closed gaoyan1998 closed 3 months ago

gaoyan1998 commented 3 months ago

OpenIM Server Version

master

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

flutter doctor

[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [版本 10.0.19044.4780], locale zh-CN)
    • Flutter version 3.24.0 on channel stable at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at D:\androidSDK
    • Platform android-35, build-tools 35.0.0
    • Java binary at: D:\Jetbrains\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.0)
    • Visual Studio at D:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.34916.146
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
    • Android Studio at D:\Jetbrains\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] Connected device (4 available)
    • V2141A (mobile)   • 1557863599000ZH • android-arm64  • Android 14 (API 34)
    • Windows (desktop) • windows         • windows-x64    • Microsoft Windows [版本 10.0.19044.4780]
    • Chrome (web)      • chrome          • web-javascript • Google Chrome 127.0.6533.120
    • Edge (web)        • edge            • web-javascript • Microsoft Edge 127.0.2651.105

[√] Network resources
    • All expected network resources are available.

• No issues found!

Build Error

Launching lib\main.dart on V2141A in debug mode...
Running Gradle task 'assembleDebug'...
E/flutter (11740): [ERROR:flutter/lib/ui/text/fontmgr_default_android.cc(429)] value vivo
I/flutter (11740): [INFO:flutter_main.cc(212)] set slow runner report callback
E/flutter (11740): [ERROR:flutter/lib/ui/text/fontmgr_default_android.cc(431)] fontXmlName /data/user/0/com.tencent.mm/code_cache/com.tencent.mm:appbrand0/flutter_custom_fonts2.xml
E/flutter (11740): [ERROR:flutter/lib/ui/text/fontmgr_default_android.cc(583)] use default font mgr
I/flutter (11740): [INFO:message_loop_android.cc(22)] prepare main_looper: 1
I/flutter (11740): [INFO:message_loop.cc(105)] start create platform thread message loop
I/flutter (11740): [INFO:message_loop_android.cc(49)] AcquireLooperForMainThread success
I/flutter (11740): [INFO:message_loop.cc(107)] create platform thread message loop end
I/flutter (11740): [INFO:message_loop.cc(112)] start AttachLoopToPlatformThread
I/flutter (11740): [INFO:message_loop.cc(114)] AttachLoopToPlatformThread reset tls_message_loop. g_platform_thread_loop:0x741f22b590 tls_message_loop:0x0
I/flutter (11740): [INFO:message_loop.cc(32)] create MessageLoop for current thread
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

/C:/Users/steve/AppData/Local/Pub/Cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1827:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
/C:/Users/steve/AppData/Local/Pub/Cache/hosted/pub.dev/extended_text_field-15.0.0/lib/src/official/rendering/editable.dart:1844:29: Error: Too few positional arguments: 3 required, 2 given.
        layoutInlineChildren(
                            ^
/C:/Users/steve/AppData/Local/Pub/Cache/hosted/pub.dev/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));
                            ^
/C:/Users/steve/AppData/Local/Pub/Cache/hosted/pub.dev/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(
                                                     ^
/C:/Users/steve/AppData/Local/Pub/Cache/hosted/pub.dev/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 'D:\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1687

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\flutter\bin\flutter.bat'' 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 24s
Error: Gradle task assembleDebug failed with exit code 1

Screenshots Link

No response

std-s commented 3 months ago

Use Flutter SDK version 3.22.3.

gaoyan1998 commented 3 months ago

Use Flutter SDK version 3.22.3.

thanks. I upgraded the extended_text_field version to 16.0.0 and flutter_local_notifications to 17.2.2 and it works