flutterfirebasefacebook-android-sdk

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


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


Solution

  • 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()