Skip to content

Add missing setting to 'Deprecated imperative apply of Flutter's Gradle plugins' page #10528

@ArocaAlejandro

Description

@ArocaAlejandro

Page URL

https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply/

Page source

https://github.com/flutter/website/tree/main/src/content/release/breaking-changes/flutter-gradle-plugin-apply.md

Describe the problem

Missing settings.ext.flutterSdkPath = flutterSdkPath() between fluterSdkPath and includeBuild

Expected fix

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")

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a.rn.breaking-changesRelates to breaking changes on a Flutter releasee1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.target.AndroidTarget apps on the Android Platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions