Skip to content

Commit fc77dd9

Browse files
authored
Adapt wording for required Android SDK for plugins (flutter#140043)
Solves flutter#137115 (comment)
1 parent 935775c commit fc77dd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/flutter_tools/gradle/src/main/groovy/flutter.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class FlutterPlugin implements Plugin<Project> {
441441
pluginProject.afterEvaluate {
442442
// Checks if there is a mismatch between the plugin compileSdkVersion and the project compileSdkVersion.
443443
if (pluginProject.android.compileSdkVersion > project.android.compileSdkVersion) {
444-
project.logger.quiet("Warning: The plugin ${pluginName} requires Android SDK version ${getCompileSdkFromProject(pluginProject)}.")
444+
project.logger.quiet("Warning: The plugin ${pluginName} requires Android SDK version ${getCompileSdkFromProject(pluginProject)} or higher.")
445445
project.logger.quiet("For more information about build configuration, see $kWebsiteDeploymentAndroidBuildConfig.")
446446
}
447447

packages/flutter_tools/test/integration.shard/android_plugin_compilesdkversion_mismatch_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void main() {
7777
expect(
7878
result.stdout,
7979
contains(
80-
'Warning: The plugin test_plugin requires Android SDK version 31.'));
80+
'Warning: The plugin test_plugin requires Android SDK version 31 or higher.'));
8181
expect(
8282
result.stderr,
8383
contains('One or more plugins require a higher Android SDK version.'),

0 commit comments

Comments
 (0)