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
varoutput=this.$childProcess.exec('android list targets').wait();
31
+
if(!output.match(validTarget)){
32
+
this.$errors.fail("Please install Android target %s the Android newest SDK). Make sure you have the latest Android tools installed as well. Run \"android\" from your command-line to install/update any missing SDKs or tools.",
this.$errors.fail("Error executing commands 'ant', make sure you have ant installed and added to your PATH.")
143
+
}
144
+
}).future<void>()();
145
+
}
146
+
147
+
privatecheckJava(): IFuture<void>{
148
+
return(()=>{
149
+
try{
150
+
this.$childProcess.exec("java -version").wait();
151
+
}catch(error){
152
+
this.$errors.fail("%s\n Failed to run 'java', make sure your java environment is set up.\n Including JDK and JRE.\n Your JAVA_HOME variable is %s",error,process.env.JAVA_HOME);
153
+
}
154
+
}).future<void>()();
155
+
}
156
+
157
+
privatecheckAndroid(): IFuture<void>{
158
+
return(()=>{
159
+
try{
160
+
this.$childProcess.exec('android list targets').wait();
161
+
}catch(error){
162
+
if(error.match(/command\snot\sfound/)){
163
+
this.$errors.fail("The command \"android\" failed. Make sure you have the latest Android SDK installed, and the \"android\" command (inside the tools/ folder) is added to your path.");
164
+
}else{
165
+
this.$errors.fail("An error occurred while listing Android targets");
0 commit comments