Skip to content

Commit c2e58cd

Browse files
authored
Add quotes to Gradle NDK version error message (#109026)
1 parent 66630d5 commit c2e58cd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/flutter_tools/gradle/flutter.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class FlutterPlugin implements Plugin<Project> {
482482
project.logger.error("One or more plugins require a higher Android SDK version.\nFix this issue by adding the following to ${project.projectDir}${File.separator}build.gradle:\nandroid {\n compileSdkVersion ${maxPluginCompileSdkVersion}\n ...\n}\n")
483483
}
484484
if (maxPluginNdkVersion != projectNdkVersion) {
485-
project.logger.error("One or more plugins require a higher Android NDK version.\nFix this issue by adding the following to ${project.projectDir}${File.separator}build.gradle:\nandroid {\n ndkVersion ${maxPluginNdkVersion}\n ...\n}\n")
485+
project.logger.error("One or more plugins require a higher Android NDK version.\nFix this issue by adding the following to ${project.projectDir}${File.separator}build.gradle:\nandroid {\n ndkVersion \"${maxPluginNdkVersion}\"\n ...\n}\n")
486486
}
487487
}
488488
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void main() {
7777
One or more plugins require a higher Android NDK version.
7878
Fix this issue by adding the following to ${projectGradleFile.path}:
7979
android {
80-
ndkVersion 21.4.7075529
80+
ndkVersion "21.4.7075529"
8181
...
8282
}
8383

0 commit comments

Comments
 (0)