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

Issue after upgrading to Flutter 3.8.0-10.1.pre #1293

Closed
4 of 11 tasks
91jaeminjo opened this issue Feb 23, 2023 · 1 comment
Closed
4 of 11 tasks

Issue after upgrading to Flutter 3.8.0-10.1.pre #1293

91jaeminjo opened this issue Feb 23, 2023 · 1 comment

Comments

@91jaeminjo
Copy link

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:

Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel beta, 3.8.0-10.1.pre, on macOS 13.2 22D49 darwin-x64, locale en-US)
    • Flutter version 3.8.0-10.1.pre on channel beta at ..../flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1a0a03a41d (6 days ago), 2023-02-16 22:03:58 -0600
    • Engine revision 639e313f99
    • Dart version 3.0.0 (build 3.0.0-218.1.beta)
    • DevTools version 2.21.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at ..../Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /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 11.0.11+0-b60-7590822)

[✓] VS Code
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554                        • android-x64    • Android 12 (API 31) (emulator)
    • iPhone 14 (mobile)           • 169C1954-61A6-4793-BDD6-FE384F8AF1EB • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)              • macos                                • darwin-x64     • macOS 13.2 22D49 darwin-x64
    • Chrome (web)                 • chrome                               • web-javascript • Google Chrome 110.0.5481.177

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

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

sdks:
  dart: ">=3.0.0-134.0.dev <4.0.0"
  flutter: ">=3.3.9"

I have the following issue:

I am on beta channel of flutter, and after the most recent upgrade, I can't build on iOS and Android.
The main issue seems to be that 'SentryAssetBundle' is missing implementations for sentry_asset_bundle.dart:37

console logs below:

iOS:

Launching lib/main.dart on iPhone in debug mode...
main.dart:1
Automatically signing iOS for device deployment using specified development team in Xcode project: ...
Xcode build done.                                           108.7s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/sentry_flutter-6.20.1/lib/src/sentry_asset_bundle.dart:37:7: Error: The non-abstract class 'SentryAssetBundle' is missing implementations for these members:
sentry_asset_bundle.dart:37

Error launching application on Jae-Min’s iPhone.
Exited

Android:

Launching lib/main.dart on Pixel 7 in debug mode...
main.dart:1
: Error: The non-abstract class 'SentryAssetBundle' is missing implementations for these members:
sentry_asset_bundle.dart:37
 - 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 {
      ^^^^^^^^^^^^^^^^^
: Context: 'AssetBundle.loadStructuredBinaryData' is defined here.
asset_bundle.dart:110
  Future<T> loadStructuredBinaryData<T>(String key, FutureOr<T> Function(ByteData data) parser) async {

            ^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
2

FAILURE: Build failed with an exception.

* Where:
Script '..../flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1154

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '..../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.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
Exception: Gradle task assembleDebug failed with exit code 1
Exited
@ueman
Copy link
Collaborator

ueman commented Feb 23, 2023

This will be fixed by #1272

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