Commit 601b8003 authored by Michael Thomsen's avatar Michael Thomsen Committed by GitHub

Add solution to gradle-dir doctor warning (#8458)

* Add solution to gradle-dir doctor warning

* Review feedback + properly format strings
parent 81a7fb48
...@@ -53,7 +53,7 @@ class AndroidStudioValidator extends DoctorValidator { ...@@ -53,7 +53,7 @@ class AndroidStudioValidator extends DoctorValidator {
'Try updating or re-installing Android Studio.')); 'Try updating or re-installing Android Studio.'));
if (_studio.configured != null) { if (_studio.configured != null) {
messages.add(new ValidationMessage( messages.add(new ValidationMessage(
'Consider removing the android-studio-dir setting.')); 'Consider removing your android-studio-dir setting by running:\nflutter config --android-studio-dir='));
} }
} }
...@@ -128,7 +128,8 @@ class ConfiguredGradleValidator extends DoctorValidator { ...@@ -128,7 +128,8 @@ class ConfiguredGradleValidator extends DoctorValidator {
} }
messages.add(new ValidationMessage( messages.add(new ValidationMessage(
'Consider removing the gradle-dir setting to use Gradle from Android Studio.')); 'Flutter supports building with Gradle from Android Studio.\n'
'Consider removing your gradle-dir setting by running:\nflutter config --gradle-dir='));
return new ValidationResult(type, messages, statusInfo: versionString); return new ValidationResult(type, messages, statusInfo: versionString);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment