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
@@ -120,7 +133,7 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
120
133
letinvalidBuildToolsAdditionalMsg=`Run \`\$ ${this.getPathToSdkManagementTool()}\` from your command-line to install required \`Android Build Tools\`.`;
121
134
if(!isAndroidHomeValid){
122
135
invalidBuildToolsAdditionalMsg+=
123
-
" In case you already have them installed, make sure `ANDROID_HOME` environment variable is set correctly.";
136
+
" In case you already have them installed, make sure `ANDROID_SDK_ROOT` environment variable is set correctly.";
124
137
}
125
138
126
139
errors.push({
@@ -250,7 +263,23 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
"The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.",
294
+
"The ANDROID_SDK_ROOT environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.",
266
295
additionalInformation:
267
-
"To be able to perform Android build-related operations, set the `ANDROID_HOME` variable to point to the root of your Android SDK installation directory.",
296
+
"To be able to perform Android build-related operations, set the `ANDROID_SDK_ROOT` variable to point to the root of your Android SDK installation directory.",
268
297
platforms: [Constants.ANDROID_PLATFORM_NAME],
269
298
});
270
299
}elseif(
271
300
expectedDirectoriesInAndroidHome.map((dir)=>
272
-
this.fs.exists(path.join(this.androidHome,dir))
301
+
this.fs.exists(path.join(androidSdkPath,dir))
273
302
).length===0
274
303
){
275
304
errors.push({
276
305
warning:
277
-
"The ANDROID_HOME environment variable points to incorrect directory. You will not be able to perform any build-related operations for Android.",
306
+
"The ANDROID_SDK_ROOT environment variable points to incorrect directory. You will not be able to perform any build-related operations for Android.",
278
307
additionalInformation:
279
-
"To be able to perform Android build-related operations, set the `ANDROID_HOME` variable to point to the root of your Android SDK installation directory, "+
308
+
"To be able to perform Android build-related operations, set the `ANDROID_SDK_ROOT` variable to point to the root of your Android SDK installation directory, "+
280
309
"where you will find `tools` and `platform-tools` directories.",
281
310
platforms: [Constants.ANDROID_PLATFORM_NAME],
282
311
});
@@ -378,7 +407,7 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
* @param {string} runtimeVersion @optional The runtime version against which the validation is executed. In case this parameter is passed, it takes precedence over the projectDir argument.
210
210
* @return {Promise<boolean>} true if local build can be executed for the provided platform.
* @param {string} runtimeVersion @optional The runtime version against which the validation is executed. In case this parameter is passed, it takes precedence over the projectDir argument.
488
495
* @return {NativeScriptDoctor.IWarning[]} An array of errors from the validation checks. If there are no errors will return [].
0 commit comments