Skip to content

Commit 2b0c895

Browse files
authored
Updated the kotlinlang version url. (#115782)
* Updated the kotlinlang version url. * fixed format for test
1 parent 1301208 commit 2b0c895

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/flutter_tools/lib/src/android/gradle_errors.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ final GradleHandledError incompatibleKotlinVersionHandler = GradleHandledError(
552552
.childFile('build.gradle');
553553
globals.printBox(
554554
'${globals.logger.terminal.warningMark} Your project requires a newer version of the Kotlin Gradle plugin.\n'
555-
'Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then update ${gradleFile.path}:\n'
555+
'Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update ${gradleFile.path}:\n'
556556
"ext.kotlin_version = '<latest-version>'",
557557
title: _boxTitle,
558558
);

packages/flutter_tools/lib/src/android/gradle_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import 'android_sdk.dart';
2626
//
2727
// For more information about the latest version, check:
2828
// https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
29-
// https://kotlinlang.org/docs/gradle.html#plugin-and-versions
29+
// https://kotlinlang.org/docs/releases.html#release-details
3030
const String templateDefaultGradleVersion = '7.5';
3131
const String templateAndroidGradlePluginVersion = '7.2.0';
3232
const String templateDefaultGradleVersionForModule = '7.2.0';

packages/flutter_tools/test/general.shard/android/gradle_errors_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,12 @@ Execution failed for task ':app:generateDebugFeatureTransitiveDeps'.
931931
testLogger.statusText,
932932
contains(
933933
'\n'
934-
'┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────\n'
935-
'│ [!] Your project requires a newer version of the Kotlin Gradle plugin. \n'
936-
'│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │\n'
937-
'│ update /android/build.gradle: \n'
938-
"│ ext.kotlin_version = '<latest-version>' \n"
939-
'└──────────────────────────────────────────────────────────────────────────────────────────────\n'
934+
'┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐\n'
935+
'│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │\n'
936+
'│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │\n'
937+
'│ update /android/build.gradle: │\n'
938+
"│ ext.kotlin_version = '<latest-version>' │\n"
939+
'└────────────────────────────────────────────────────────────────────────────────────────────┘\n'
940940
)
941941
);
942942
}, overrides: <Type, Generator>{

0 commit comments

Comments
 (0)