Reverts "Use Gradle KTS in new Android app projects by default (#154061)" (#157194)

Reverts: flutter/flutter#154061
Initiated by: QuncCccccc
Reason for reverting: might be the reason that cause Framework tree to red
Original PR Author: bartekpacia

Reviewed By: {gmackall, reidbaker}

This change reverts the following previous change:
This PR resolves #151166
This commit is contained in:
auto-submit[bot]
2024-10-18 21:14:46 +00:00
committed by GitHub
parent d3c54a115f
commit 9a41f11610
18 changed files with 112 additions and 133 deletions

View File

@@ -160,7 +160,7 @@ Future<ProcessResult> buildFlutterApkWithSpecifiedDependencyVersions({
if (versions.compileSdkVersion != null) {
final File appGradleBuild = File(fileSystem.path.join(
app.path, 'android', 'app', 'build.gradle.kts'));
app.path, 'android', 'app', 'build.gradle'));
final String appBuildContent = appGradleBuild.readAsStringSync()
.replaceFirst(flutterCompileSdkString, versions.compileSdkVersion!);
appGradleBuild.writeAsStringSync(appBuildContent);