79324572

Date: 2025-01-02 17:58:48
Score: 1
Natty:
Report link

@ib_ganz and @tomerpacific mentioned changing compileSdkVersion from 34 -> 35 in the android level build.gradle file, and also updating the targetSdkVersion 34 -> 35 in the app level build.gradle file.

Like:

android/app/build.gradle

defaultConfig {
        applicationId "com.example.flutter_app"
        minSdkVersion 26
        targetSdkVersion 35 // changed from 34 -> 35
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

And

android/build.gradle

 afterEvaluate { project ->
        if (project.plugins.hasPlugin("com.android.application") ||
                project.plugins.hasPlugin("com.android.library")) {
            project.android {
                compileSdkVersion 35 <- Here
                buildToolsVersion "35.0.0" <- Here
            }
        }
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @ib_ganz
  • User mentioned (0): @tomerpacific
  • Low reputation (1):
Posted by: Farooq Zahid