-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
my yaml file use shared_preferences 2.1.0 and run, Android is report an error.
Actual results
.../flutter/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_android-2.1.1/android/src/main/java/io/flutter/plugins/sharedpreferences/Messages.java:84: error: static interface methods are not supported in -source 7
static @nonnull MessageCodec getCodec() {
^
(use -source 8 or higher to enable static interface methods)
.../flutter/.pub-cache/hosted/pub.flutter-io.cn/shared_preferences_android-2.1.1/android/src/main/java/io/flutter/plugins/sharedpreferences/Messages.java:103: error: lambda expressions are not supported in -source 7
(message, reply) -> {
^
(use -source 8 or higher to enable lambda expressions)
2 errors
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
[✓] Flutter (Channel stable, 3.3.0, on macOS 12.6.1 21G217 darwin-x64, locale en-CN)
• Flutter version 3.3.0 on channel stable at .../Desktop/FZDev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ffccd96 (8 months ago), 2022-08-29 17:28:57 -0700
• Engine revision 5e9e0e0aa8
• Dart version 2.18.0
• DevTools version 2.15.0
• 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 30.0.3)
• Android SDK at /Users/fjrb/Library/Android/sdk
• Platform android-33, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at .../Library/Android/sdk
• Platform android-33, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.