Minor tweaks to flutter doctor (#9963)
This commit is contained in:
@@ -104,7 +104,7 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
|
||||
} else {
|
||||
messages.add(new ValidationMessage.error(
|
||||
'Unable to locate Android SDK.\n'
|
||||
'Install Android Studio from https://developer.android.com/studio/index.html.\n'
|
||||
'Install Android Studio from: https://developer.android.com/studio/index.html\n'
|
||||
'On first launch it will assist you in installing the Android SDK components.\n'
|
||||
'(or visit https://flutter.io/setup/#android-setup for detailed instructions).\n'
|
||||
'If Android SDK has been installed to a custom location, set \$$kAndroidHome to that location.'
|
||||
|
||||
@@ -133,9 +133,8 @@ String ensureGradle() {
|
||||
String gradle = locateProjectGradlew();
|
||||
if (gradle == null) {
|
||||
gradle = locateSystemGradle();
|
||||
if (gradle == null) {
|
||||
if (gradle == null)
|
||||
throwToolExit('Unable to locate gradle. Please install Android Studio.');
|
||||
}
|
||||
}
|
||||
printTrace('Using gradle from $gradle.');
|
||||
return gradle;
|
||||
|
||||
@@ -11,6 +11,7 @@ class DoctorCommand extends FlutterCommand {
|
||||
DoctorCommand() {
|
||||
argParser.addFlag('android-licenses',
|
||||
defaultsTo: false,
|
||||
negatable: false,
|
||||
help: 'Run the Android SDK manager tool to accept the SDK\'s licenses.',
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user