Lijo Jose
Lijo Jose

Reputation: 21

One or more plugins require a higher Android SDK version error

One or more plugins require a higher Android SDK version. Fix this issue by adding the following to D:\Flutter Projets\scheduler\android\app\build.gradle: android { compileSdkVersion 33 ... }

2

FAILURE: Build failed with an exception.

Process 'command 'C:\Users\lijoj\Documents\flutter\bin\flutter.bat'' finished with non-zero exit value 1

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 7s Exception: Gradle task assembleDebug failed with exit code 1

Upvotes: 2

Views: 6912

Answers (2)

K_Chandio
K_Chandio

Reputation: 797

In your IDE open folder android/app/build.gradle and search for compileSdkVersion(usually inside android attribute) and in from of that replace 'flutter.compileSdkVersion' with '33'.

Upvotes: 1

Jenis Navadiya
Jenis Navadiya

Reputation: 196

Go into the Android -> App -> build.gradle and set targetSdkVersion and compileSdkVersion to 33

Because You have used many plugins in your project and one of them is latest plugin, so latest plugin requires latest Android sdk platfrom.

Upvotes: 1

Related Questions