Fixes the bug when cordova runs
Tracked it down to file /platforms/android/cordova/lib/emulator.js line 202:
var num = target.split('(API level ')1.replace(')', '');
Replace it with a regex search and extraction:
var num = target.match(/\d+/)[0];