One or more plugins require a higher Android SDK version - Facebook-auth

556 views Asked by At

Good work, I decided to write facebook login for my app. I used this package flutter_facebook_auth: ^5.0.6

enter image description here

enter image description here

I changed the sdk version to 33 but the error persists

2

There are 2 answers

3
Alex Coloma On BEST ANSWER

It works with the last version:

In android/app/build.gradle you have to modify compileSdkVersion line in android{} to:

compileSdkVersion localProperties.getProperty('flutter.compileSdkVersion').toInteger()

and in android/local.properties you have to add this line if it doesn't exist:

flutter.compileSdkVersion= 33

EDITED----

And for the minSdkVersion

android/local.properties: flutter.minSdkVersion=16

android/app/build.gradle:

inside defaultConfig{}:

minSdkVersion localProperties.getProperty('flutter.minSdkVersion').toInteger()

0
ashblossom On

check your android/app/build.gradle and add this on android side

android {
    compileSdkVersion 33

    }