diff --git a/dev/tools/bin/generate_gradle_lockfiles.dart b/dev/tools/bin/generate_gradle_lockfiles.dart index 8daafdf7bf..e039e9f757 100644 --- a/dev/tools/bin/generate_gradle_lockfiles.dart +++ b/dev/tools/bin/generate_gradle_lockfiles.dart @@ -86,13 +86,11 @@ void main(List arguments) { // Verify that the Gradlew wrapper exists. final File gradleWrapper = androidDirectory.childFile('gradlew'); - // Generate Gradle wrapper if it doesn't exists. - // This logic is embedded within the Flutter tool. - // To generate the wrapper, build a flavor that doesn't exist. + // Generate Gradle wrapper if it doesn't exist. if (!gradleWrapper.existsSync()) { Process.runSync( 'flutter', - ['build', 'apk', '--debug', '--flavor=does-not-exist'], + ['build', 'apk', '--config-only'], workingDirectory: appDirectory, ); }