incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 92 forks source link

Asking for a higher version than the suggested Flutter SDK version #97

Closed ollyde closed 4 months ago

ollyde commented 5 months ago

The following Android SDK is defined here

compileSdkVersion flutter.compileSdkVersion

I'm getting the following error

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Warning: The plugin file_saver requires Android SDK version 34.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to /Users/oliverdixon/Projects/hellofood/hellofood-flutter/android/app/build.gradle:
android {
  compileSdkVersion 34
}
incrediblezayed commented 4 months ago

Just change your flutter.compileSdkVersion to 34

ollyde commented 4 months ago

@incrediblezayed thats not a good idea. Always use the recommended via flutter otherwise you’re going to face issues