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

Build fails on latest flutter beta #150

Closed
Persie0 opened this issue Jan 13, 2024 · 2 comments
Closed

Build fails on latest flutter beta #150

Persie0 opened this issue Jan 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Persie0
Copy link

Persie0 commented Jan 13, 2024

Describe the bug
When building an appbundle on the latest flutter beta, you get an error. Stable works fine.

To Reproduce
Run flutter build appbundle --obfuscate --split-debug-info=./build
`Running Gradle task 'bundleRelease'...

...

warning: [options] source value 7 is obsolete and will be removed in a future release
warning: [options] target value 7 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
/opt/hostedtoolcache/flutter/3.19.0-0.1.pre-beta/x64/.pub-cache/hosted/pub.dev/shared_storage-0.8.0/lib/src/common/functional_extender.dart:28:36: Error: A value of type 'Object?' can't be returned from a function with return type 'T?'.

  • 'Object' is from 'dart:core'.
    return self != null && f(self) ? self : null;
    ^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command '/opt/hostedtoolcache/flutter/3.19.0-0.1.pre-beta/x64/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.

BUILD FAILED in 4m 34s
Running Gradle task 'bundleRelease'... 275.3s
Gradle task bundleRelease failed with exit code 1
Error: Process completed with exit code 1.`

@Persie0 Persie0 added the bug Something isn't working label Jan 13, 2024
@Persie0
Copy link
Author

Persie0 commented Feb 15, 2024

now also on latest stable, any update?

3 warnings
/opt/hostedtoolcache/flutter/3.19.0-stable/x64/.pub-cache/hosted/pub.dev/shared_storage-0.8.0/lib/src/common/functional_extender.dart:28:36: Error: A value of type 'Object?' can't be returned from a function with return type 'T?'.

  • 'Object' is from 'dart:core'.
    return self != null && f(self) ? self : null;
    ^
    Target kernel_snapshot failed: Exception

alexrintt added a commit that referenced this issue Feb 16, 2024
alexrintt added a commit that referenced this issue Feb 16, 2024
@alexrintt
Copy link
Owner

Thanks for reporting, published a fix https://pub.dev/packages/shared_storage/versions/0.8.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants