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
@@ -51,6 +52,7 @@ export class AndroidToolsInfo implements IAndroidToolsInfo {
51
52
if(!toolsInfoData.compileSdkVersion){
52
53
this.printMessage(`Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK ${AndroidToolsInfo.MIN_REQUIRED_COMPILE_TARGET} or later.`,
53
54
"Run `$ android` to manage your Android SDK versions.");
55
+
detectedErrors=true;
54
56
}
55
57
56
58
if(!toolsInfoData.buildToolsVersion){
@@ -65,11 +67,13 @@ export class AndroidToolsInfo implements IAndroidToolsInfo {
65
67
66
68
this.printMessage("You need to have the Android SDK Build-tools installed on your system. "+message,
67
69
'Run "android" from your command-line to install required Android Build Tools.');
70
+
detectedErrors=true;
68
71
}
69
72
70
73
if(!toolsInfoData.supportRepositoryVersion){
71
74
this.printMessage(`You need to have the latest Android Support Repository installed on your system.`,
72
75
'Run `$ android` to manage the Android Support Repository.');
76
+
detectedErrors=true;
73
77
}
74
78
75
79
if(options&&options.validateTargetSdk){
@@ -81,12 +85,15 @@ export class AndroidToolsInfo implements IAndroidToolsInfo {
81
85
82
86
if(targetSdk&&(targetSdk<minSupportedVersion)){
83
87
this.printMessage(`The selected Android target SDK ${newTarget} is not supported. You must target ${minSupportedVersion} or later.`);
this.$logger.warn(`WARNING: Gradle version is lower than ${DoctorService.MIN_SUPPORTED_GRADLE_VERSION}.`);
76
77
this.$logger.out("You will not be able to build your projects for Android or run them in the emulator or on a connected device."+EOL
77
78
+`To be able to build for Android and run apps in the emulator or on a connected device, verify thqt you have at least ${DoctorService.MIN_SUPPORTED_GRADLE_VERSION} version installed.`);
79
+
result=true;
78
80
}
79
81
80
82
if(!sysInfo.javacVersion){
81
83
this.$logger.warn("WARNING: Javac is not installed or is not configured properly.");
82
84
this.$logger.out("You will not be able to build your projects for Android."+EOL
83
85
+"To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as"+EOL+
84
86
" described in https://github.com/NativeScript/nativescript-cli#system-requirements.");
0 commit comments