diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 3296acc1..91875f5c 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -81,7 +81,7 @@ module.exports.check_android = function() { } return Q(); }, function(stderr) { - if (stderr.match(/command\snot\sfound/)) { + if (stderr.match(/command\snot\sfound/) || stderr.match(/is not recognized as an internal or external command/)) { return Q.reject(new Error('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.')); } else { return Q.reject(new Error('An error occurred while listing Android targets. Error: ' + stderr ));