Skip to content

Allow to configure the behavior of deleting the .gradle folder if there is a connection problem #89959

@leynier

Description

@leynier

Use case

This issue is to request that the behavior of removing the contents of the .gradle folder when a problem occurs with the internet connection can be enabled or disabled by a setting, perhaps a parameter of flutter run and flutter build, perhaps through an operating system environment variable or perhaps through a configuration file.

Many developers do not have a stable Internet connection so the delete behavior if an Internet connection problem occurs, is really inconvenient, because downloading the files again is a problem. I understand that the delete behavior is to prevent corrupt Gradle files from being used, but it would be great if that behavior is configurable.

It was already mentioned in another issue (#89000) and it was concluded that it is expected behavior.

final GradleHandledError networkErrorHandler = GradleHandledError(

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.t: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions