본문 바로가기

Flutter

The plugin shared_preferences_android requires Android SDK version 33.

반응형

간단하게 데이터 저장할 부분이 있어서 shared_preferences를 추가했더니 워닝 발생.

Warning: The plugin shared_preferences_android requires Android SDK version 33.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to /Users/.../android/app/build.gradle:
android {
  compileSdkVersion 33
  ...
}

 

하라는 대로 app/build.gradle 파일에 compileSdkVersion 33 추가를 해줘도 계속 같은 워닝 발생.

targetSdkVersion flutter.targetSdkVersion
-> targetSdkVersion 33

targetSdkVersion 까지 33 으로 바꾸니 해결.

defaultConfig {
    applicationId "com.bigwave.rgbtohex"
    multiDexEnabled true
    minSdkVersion 19
    targetSdkVersion 33
    compileSdkVersion 33
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}
반응형