diff --git a/bin/templates/cordova/lib/android_sdk.js b/bin/templates/cordova/lib/android_sdk.js index 692e7df9..58d301ef 100755 --- a/bin/templates/cordova/lib/android_sdk.js +++ b/bin/templates/cordova/lib/android_sdk.js @@ -122,7 +122,7 @@ module.exports.list_targets = function() { .catch(function(err) { // there's a chance `android` no longer works. // lets see if `sdkmanager` is available and we can figure it out - var avail_regex = /android command is no longer available/; + var avail_regex = /"?android"? command is no longer available/; if (err.code && ((err.stdout && err.stdout.match(avail_regex)) || (err.stderr && err.stderr.match(avail_regex)))) { return module.exports.list_targets_with_sdkmanager(); } else throw err;