Skip to content

Add telemetry event to track Android dependencies (AGP, min/target/compile SDK, JDK, Gradle version) #181559

@jmagman

Description

@jmagman

Flutter already tracks AGP version here.

_analytics.send(
Event.flutterBuildInfo(
label: successEventLabel,
buildType: 'gradle',
settings: 'androidGradlePluginVersion: $agpVersion',
),

However, it would be more useful to have a single structured telemetry event that contains all the Android dependency versions we care about (Gradle, AGP, KGP, min/target/compile SDK, JDK, NDK, etc), on both failures and errors.

This requires a new unified_analytics event, like this:
dart-lang/tools#2062

Then adoption, like this:
#166773

Then add a dashboard, see go/flutter-dash-guide (internal Google link)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions