Facebook Audience Network Ads Utility for Flutter

While integrating the ads, it will work fine in debug but, its won’t work when we try to build it

so we need to add :

https://www.youtube.com/watch?v=VIDEO_ID

in android/build.gradle:

subprojects {
     afterEvaluate { project ->
        if (project.plugins.hasPlugin("com.android.application") ||
                project.plugins.hasPlugin("com.android.library")) {
            project.android {
                compileSdkVersion 34
                buildToolsVersion "34.0.0"
            }
        }
    }
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(':app')
}
Updated on