Skip to content

Android Gradle Sync is time-consuming #110559

@Nayuta403

Description

@Nayuta403

In our multiple projects upgrading from 2.0 to 2.10, we found that Android Gradle increased significantly. Some projects went from 10s to 5 minutes.

The discovery was introduced by this change: #83067. The generateLockfiles task is introduced, and after we delete the task, the time is back to normal.

So I want to know:

  1. What's the worst thing that could happen if I cancel this task?
  2. Why is this task so time-consuming

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowcustomer: bytedanceplatform-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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions