File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed
test/general.shard/android Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -441,10 +441,17 @@ final GradleHandledError incompatibleKotlinVersionHandler = GradleHandledError(
441441 final File gradleFile = project.directory
442442 .childDirectory ('android' )
443443 .childFile ('build.gradle' );
444+ final File settingsFile = project.directory
445+ .childDirectory ('android' )
446+ .childFile ('settings.gradle' );
444447 globals.printBox (
445448 '${globals .logger .terminal .warningMark } Your project requires a newer version of the Kotlin Gradle plugin.\n '
446- 'Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update ${gradleFile .path }:\n '
447- "ext.kotlin_version = '<latest-version>'" ,
449+ 'Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the \n '
450+ 'version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of \n '
451+ '${settingsFile .path }.\n\n '
452+ 'Alternatively (if your project was created before Flutter 3.19), update \n '
453+ '${gradleFile .path }\n '
454+ "ext.kotlin_version = '<latest-version>'" ,
448455 title: _boxTitle,
449456 );
450457 return GradleBuildStatus .exit;
Original file line number Diff line number Diff line change @@ -814,13 +814,18 @@ Execution failed for task ':app:generateDebugFeatureTransitiveDeps'.
814814 expect (
815815 testLogger.statusText,
816816 contains (
817- '\n '
818- '┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐\n '
819- '│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │\n '
820- '│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │\n '
821- '│ update /android/build.gradle: │\n '
822- "│ ext.kotlin_version = '<latest-version>' │\n "
823- '└────────────────────────────────────────────────────────────────────────────────────────────┘\n '
817+ '\n '
818+ '┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐\n '
819+ '│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │\n '
820+ '│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │\n '
821+ '│ update the │\n '
822+ '│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │\n '
823+ '│ /android/settings.gradle. │\n '
824+ '│ │\n '
825+ '│ Alternatively (if your project was created before Flutter 3.19), update │\n '
826+ '│ /android/build.gradle │\n '
827+ "│ ext.kotlin_version = '<latest-version>' │\n "
828+ '└──────────────────────────────────────────────────────────────────────────────────────────────┘\n '
824829 )
825830 );
826831 }, overrides: < Type , Generator > {
You can’t perform that action at this time.
0 commit comments