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 }() includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") repositories { google() mavenCentral() gradlePluginPortal() maven { url 'https://developer.huawei.com/repo/' } } resolutionStrategy { eachPlugin { if (requested.id.id == "com.huawei.agconnect") { useModule("com.huawei.agconnect:agcp:1.9.1.304") } } } } plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version '8.11.0' apply false id("org.jetbrains.kotlin.android") version "2.2.0" apply false id("com.google.gms.google-services") version "4.4.3" apply false id("com.google.firebase.crashlytics") version "3.0.4" apply false id('org.gradle.toolchains.foojay-resolver-convention') version '0.9.0' apply false id "com.huawei.agconnect" version "1.9.1.304" apply false } dependencyResolutionManagement { repositories { google() mavenCentral() gradlePluginPortal() maven { url 'https://developer.huawei.com/repo/' } maven { url "https://artifactory.ess-dev.com/artifactory/gradle-dev-local" } } } include ":app"