You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/doctor.ts
+2-12Lines changed: 2 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,7 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
43
43
additionalInformation: "For Android-related operations, the NativeScript CLI will use a built-in version of adb."+EOL
44
44
+"To avoid possible issues with the native Android emulator, Genymotion or connected"+EOL
45
45
+"Android devices, verify that you have installed the latest Android SDK and"+EOL
46
-
+"its dependencies as described in http://developer.android.com/sdk/index.html#Requirements"+EOL
47
-
+this.getPackageManagerTip(),
46
+
+"its dependencies as described in http://developer.android.com/sdk/index.html#Requirements"+EOL,
48
47
platforms: [Constants.ANDROID_PLATFORM_NAME]
49
48
});
50
49
}
@@ -54,8 +53,7 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
54
53
warning: "WARNING: The Android SDK is not installed or is not configured properly.",
55
54
additionalInformation: "You will not be able to run your apps in the native emulator. To be able to run apps"+EOL
56
55
+"in the native Android emulator, verify that you have installed the latest Android SDK "+EOL
57
-
+"and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements"+EOL
58
-
+this.getPackageManagerTip(),
56
+
+"and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements"+EOL,
59
57
platforms: [Constants.ANDROID_PLATFORM_NAME]
60
58
});
61
59
}
@@ -171,12 +169,4 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
171
169
thrownewError(`Platform ${platform} is not supported.The supported platforms are: ${Constants.SUPPORTED_PLATFORMS.join(", ")} `);
172
170
}
173
171
}
174
-
175
-
privategetPackageManagerTip(): string{
176
-
if(this.hostInfo.isWindows){
177
-
return"TIP: To avoid setting up the necessary environment variables, you can use the chocolatey package manager to install the Android SDK and its dependencies."+EOL;
178
-
}elseif(this.hostInfo.isDarwin){
179
-
return"TIP: To avoid setting up the necessary environment variables, you can use the Homebrew package manager to install the Android SDK and its dependencies."+EOL;
0 commit comments