applying Flutter's app_plugin_loader Gradle plugin deprecated Warning.

Опубликовано: 11 Март 2026
на канале: code x
11,390
50

In this video will learn how to resolve this warning .

applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a futur release igrate to applying Gradle plugins with the declarative plugins black: https://flutter.dev/go/flutter-gradle... STACK You are applying Flutter's main Gradle plugin Areeratively using the apply script method, which is deprecated and will be removed in a future release. At grate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle...

app/gradle
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

settings.gradle
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()

includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")

repositories {
google()
mavenCentral()
gradlePluginPortal()
}

plugins {
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
}
}

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
}

include ":app"