15

One or more plugins require a higher Android SDK version. Fix this issue by adding the following to C:\Users\Najeeb Khan\Desktop\codecanyon-30196044-single-market-groceryfoodpharmacy-androidiosadmin-panel-full-app-solution-with-web-site\Market_v2.1.2\customerApp\android\app\build.gradle: android { compileSdkVersion 31 ... }

1

4 Answers 4

12

It clearly says that the third-party plugin used in your project (pubspec. yaml) works only on complileSdkVersion 31. Go to your android/app/build. Gradle and change it to compileSdkVersion to 32 or higher. It may work.

7
  • 1
    whene I run sdk version 32.H e gives this error May 26, 2022 at 9:11
  • 1
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.0.5/lib/src/com/IWbemClassObject.dart:102:46: Error: Type 'Utf16' not found. Pointer obj, int lFlags, Pointer<Pointer<Utf16>> pstrObjectText); ^^^^^ May 26, 2022 at 9:11
  • 1
    Now it is the version 33. Sep 1, 2022 at 7:10
  • I have change the compileSdkVersion but still get the error, while the app is working fine. Dec 24, 2022 at 19:16
  • Do you know how I can check which specific plug-ins are requiring that version?
    – jcodes
    Jun 21 at 19:16
5

Change compileSdkVersion to 32 if it is 31 in

android\app\build.gradle

1
  • Hi, Do you know how I can check which specific plug-ins are requiring that version?
    – jcodes
    Jun 21 at 19:16
3

The error I got was like this:

One or more plugins require a higher Android SDK version. Fix this issue by adding the following to C:\xxx\xxx\project_name\android\app\build.gradle:

android {

compileSdkVersion 33

...

}

In C:\xxx\xxx\project_name\android\app\build.gradle

android {
  compileSdkVersion 33// flutter.compileSdkVersion
  ...
}

Comment out the old code and type 33

0

implementation 'com.google.android.material:material:33'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.