@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
}
}
}