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 ... }
4 Answers
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.
-
1
-
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
-
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?– jcodesJun 21 at 19:16
Change compileSdkVersion to 32 if it is 31 in
android\app\build.gradle
-
Hi, Do you know how I can check which specific plug-ins are requiring that version?– jcodesJun 21 at 19:16
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