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

Latest version is not compatible with Flutter 3.7 #1289

Closed
4 of 11 tasks
Noah-Houghton opened this issue Feb 21, 2023 · 2 comments
Closed
4 of 11 tasks

Latest version is not compatible with Flutter 3.7 #1289

Noah-Houghton opened this issue Feb 21, 2023 · 2 comments

Comments

@Noah-Houghton
Copy link

Noah-Houghton commented Feb 21, 2023

Platform:

  • Dart
  • Flutter Android or iOS
  • Flutter Web

IDE:

  • VSCode
  • IntelliJ/AS
  • XCode
  • Other, which one?

split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):

  • Enabled
  • Disabled

Platform installed with:

  • pub.dev
  • GitHub

Output of the command flutter doctor -v below:

[✓] Flutter (Channel master, 3.8.0-14.0.pre.8, on Ubuntu 22.04.1 LTS 5.19.0-32-generic, locale en_US.UTF-8)
    • Flutter version 3.8.0-14.0.pre.8 on channel master at /home/noah/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7175de4fe6 (3 hours ago), 2023-02-21 07:43:40 -0500
    • Engine revision aa526b68fc
    • Dart version 3.0.0 (build 3.0.0-259.0.dev)
    • DevTools version 2.21.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /home/noah/Android/Sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: /home/noah/dev/apps/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2022.1)
    • Android Studio at /home/noah/dev/apps/android-studio
    • Flutter plugin version 72.1.2
    • Dart plugin version 221.6096
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.58.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.1 LTS 5.19.0-32-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 110.0.5481.100

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

• No issues found!

The version of the SDK (See pubspec.lock):

  dart: ">=2.19.2 <4.0.0"
  flutter: ">=3.3.0"

I have the following issue:

I am updating my application (currently running Flutter 3.3.10) to the newest version of Flutter (3.7). I have resolved all other upgrade-related errors. When I try to run the app with sentry & sentry_flutter ^6.20.1, I get the following error:

./../../../../.pub-cache/hosted/pub.dev/sentry_flutter-7.0.0-beta.4/lib/src/sentry_asset_bundle.dart:34:7: Error: The non-abstract
class 'SentryAssetBundle' is missing implementations for these members:
 - AssetBundle.loadStructuredBinaryData
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 SentryAssetBundle implements AssetBundle {
      ^^^^^^^^^^^^^^^^^
../../../../../snap/flutter/common/flutter/packages/flutter/lib/src/services/asset_bundle.dart:110:13: Context:
'AssetBundle.loadStructuredBinaryData' is defined here.
  Future<T> loadStructuredBinaryData<T>(String key, FutureOr<T> Function(ByteData data) parser) async {

The issue persists with ^7.0.0-beta-4.

Steps to reproduce:

  • Create flutter project using Flutter 3.7.0 on stable branch
  • flutter pub add sentry sentry_flutter
  • write a widget test
  • run flutter test

Actual result:

  • above error is displayed

Expected result:

  • application runs as it did before
@ueman
Copy link
Collaborator

ueman commented Feb 21, 2023

There's already a PR which tries to fix it: #1272

@Noah-Houghton
Copy link
Author

Oh great, I didn't see that one -- thank you!

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

No branches or pull requests

3 participants