diff --git a/bin/templates/cordova/lib/emulator.js b/bin/templates/cordova/lib/emulator.js index 0a23084e..305e2e3d 100644 --- a/bin/templates/cordova/lib/emulator.js +++ b/bin/templates/cordova/lib/emulator.js @@ -187,7 +187,9 @@ module.exports.list_images = function () { var api_level = avd.target.match(/\d+/); if (api_level) { var level = android_versions.get(api_level); - avd.target = 'Android ' + level.semver + ' (API level ' + api_level + ')'; + if (level) { + avd.target = 'Android ' + level.semver + ' (API level ' + api_level + ')'; + } } } return avd;