Skip to content
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

[Bug report] 升级 flutter 3.29.0 后报错 #172

Closed
chentianxin opened this issue Feb 13, 2025 · 8 comments
Closed

[Bug report] 升级 flutter 3.29.0 后报错 #172

chentianxin opened this issue Feb 13, 2025 · 8 comments

Comments

@chentianxin
Copy link

Version

14.2.0

Platforms

Android

Device Model

xiaomi 14

flutter info

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.2 24C101 darwin-arm64, locale
    zh-Hans-CN) [1,726ms]
    • Flutter version 3.29.0 on channel stable at /Users/ctx/fvm/versions/3.29.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (2 days ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    [3.3s]
    • Android SDK at /Users/ctx/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at:
      /Users/ctx/Library/Java/JavaVirtualMachines/corretto-17.0.11/Contents/Home
      /bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Corretto-17.0.11.9.1 (build
      17.0.11+9-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [786ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [65ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.2) [65ms]
    • Android Studio at /Users/ctx/Applications/Android Studio.app/Contents
    • 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 21.0.4+-12422083-b607.1)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.2.2) [62ms]
    • IntelliJ at /Users/ctx/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.23654.44

[✓] VS Code (version 1.97.1) [6ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.104.0

[!] Proxy Configuration [6ms]
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (6 available) [5.7s]
    • 23127PN0CC (mobile)             • a0a13173                  •
      android-arm64 • Android 15 (API 35)
    • macOS (desktop)                 • macos                     • darwin-arm64
      • macOS 15.2 24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin
      • macOS 15.2 24C101 darwin-arm64

[✓] Network resources [488ms]
    • All expected network resources are available.

How to reproduce?

Launching lib/main.dart on 23127PN0CC in debug mode...
Running Gradle task 'assembleDebug'...
Warning: 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-14.2.0/lib/src/official/rendering/paragraph.dart:1124:7: Error: The non-abstract class '_SelectableFragment' is missing implementations for these members:
 - SelectionHandler.contentLength
 - SelectionHandler.getSelection
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class _SelectableFragment
      ^^^^^^^^^^^^^^^^^^^
../../../../fvm/versions/3.29.0/packages/flutter/lib/src/rendering/selection.dart:116:11: Context: 'SelectionHandler.contentLength' is defined here.
  int get contentLength;
          ^^^^^^^^^^^^^
../../../../fvm/versions/3.29.0/packages/flutter/lib/src/rendering/selection.dart:100:25: Context: 'SelectionHandler.getSelection' is defined here.
  SelectedContentRange? getSelection();
                        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_text-14.2.0/lib/src/extended/selection_mixin.dart:91:7: Error: The non-abstract class '_ExtendedSelectableFragment' is missing implementations for these members:
 - SelectionHandler.contentLength
 - SelectionHandler.getSelection
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class _ExtendedSelectableFragment extends _SelectableFragment {
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../fvm/versions/3.29.0/packages/flutter/lib/src/rendering/selection.dart:116:11: Context: 'SelectionHandler.contentLength' is defined here.
  int get contentLength;
          ^^^^^^^^^^^^^
../../../../fvm/versions/3.29.0/packages/flutter/lib/src/rendering/selection.dart:100:25: Context: 'SelectionHandler.getSelection' is defined here.
  SelectedContentRange? getSelection();
                        ^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/ctx/fvm/versions/3.29.0/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 7s
Error: Gradle task assembleDebug failed with exit code 1

Logs

Example code (optional)

Contact

No response

@vinsonswang
Copy link

same issue for me!

@OICQ469
Copy link

OICQ469 commented Feb 13, 2025

一样运行不了3.29

@yuanhoujun
Copy link

Same!

@zrj1884
Copy link

zrj1884 commented Feb 13, 2025

Please fix the issue.

@NaiaraManeiro
Copy link

I've got the same issue after updating to Flutter version 3.29.0.

@VB10
Copy link

VB10 commented Feb 13, 2025

I've added pr for this problem. You can use this for fixed version:

  extended_text:
    git:
      url: https://github.com/VB10/extended_text
      ref: fix/flutter_3.29.0

@vinsonswang
Copy link

vinsonswang commented Feb 14, 2025

I've added pr for this problem. You can use this for fixed version:

  extended_text:
    git:
      url: https://github.com/VB10/extended_text
      ref: fix/flutter_3.29.0

@VB10
Could you please let us know when you plan to update the extended_text version? Our SDK depends on the extended_text library and needs to be published on Pub, but Pub does not allow GitHub source dependencies in pubspec.yaml files.

@zmtzawqlp
Copy link
Member

b8e505f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants