applying Flutter's app_plugin_loader Gradle plugin deprecated Warning.

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024
  • 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: flutter.dev/go... 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: flutter.dev/go...
    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"

Комментарии • 4

  • @AsiaAkram-h6r
    @AsiaAkram-h6r 5 месяцев назад +1

    very helpful thank you so much

    • @codex8787
      @codex8787  5 месяцев назад

      Glad it helped!

  • @call_me_naseem
    @call_me_naseem Месяц назад +1

    Plugin [id: 'com.android.application', version: '7.3.0', apply: false] was not found in any of the following sources:
    bro it show this error

    • @codex8787
      @codex8787  Месяц назад

      New flutter update all things are relocated, you can find com android application in app gradle or version related information inside settings.gradle in root dir