79360771

Date: 2025-01-16 08:08:03
Score: 1
Natty:
Report link

go to android/ build.gradle

then replace

subprojects {
    project.evaluationDependsOn(":app")
}

with

subprojects {
    afterEvaluate {
        project ->
            if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) {
                    project.android {
                        compileSdkVersion 34
                    }
            }
    }
}


subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(":app")
}

then save and build "flutter build apk"

for reference visit https://youtu.be/YQAw5EBI1DU?feature=shared

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kavikshana