diff --git a/bin/lib/android_sdk_version.js b/bin/lib/android_sdk_version.js index d03e1e7d..e5923784 100755 --- a/bin/lib/android_sdk_version.js +++ b/bin/lib/android_sdk_version.js @@ -51,7 +51,7 @@ get_sdks = function() { return Q(); }, function(stderr) { - if (stderr.match(/command\snot\sfound/)) { + if (stderr.match(/command\snot\sfound/) || stderr.match(/'android' is not recognized/)) { 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'));