尝试构buildphonegap应用程序时出现错误

我正在尝试构build一个混合应用程序,大约一个小时前我使用相同的环境构build了应用程序,但现在我无法构build任何平台。 cordova给我下面的错误

D:\xampp\htdocs\applications\quadBuild>phonegap build android [phonegap] executing 'cordova build android'... D:\xampp\htdocs\applications\quadBuild>cordova build android Error: Non-whitespace before first tag. Line: 0 Column: 1 Char: at error (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\cordova\node_m odules\cordova-lib\node_modules\elementtree\node_modules\sax\lib\sax.js:347:8) at strictFail (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\cordova\n ode_modules\cordova-lib\node_modules\elementtree\node_modules\sax\lib\sax.js:364 :22) at Object.write (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\cordova \node_modules\cordova-lib\node_modules\elementtree\node_modules\sax\lib\sax.js:6 03:11) at XMLParser.feed (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\cordo va\node_modules\cordova-lib\node_modules\elementtree\lib\parsers\sax.js:48:15) at ElementTree.parse (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\co rdova\node_modules\cordova-lib\node_modules\elementtree\lib\elementtree.js:263:1 0) at Object.exports.XML (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\c ordova\node_modules\cordova-lib\node_modules\elementtree\lib\elementtree.js:593: 13) at Object.module.exports.parseElementtreeSync (C:\Users\Spartan 7\AppData\Ro aming\npm\node_modules\cordova\node_modules\cordova-lib\src\util\xml-helpers.js: 123:38) at ConfigFile_load [as load] (C:\Users\Spartan 7\AppData\Roaming\npm\node_mo dules\cordova\node_modules\cordova-lib\src\plugman\util\ConfigFile.js:69:33) at new ConfigFile (C:\Users\Spartan 7\AppData\Roaming\npm\node_modules\cordo va\node_modules\cordova-lib\src\plugman\util\ConfigFile.js:48:10) at ConfigKeeper_get [as get] (C:\Users\Spartan 7\AppData\Roaming\npm\node_mo dules\cordova\node_modules\cordova-lib\src\plugman\util\ConfigKeeper.js:51:23) 

这是重新启动后发生的。 可能是什么问题呢? 请帮帮我。

Solutions Collecting From Web of "尝试构buildphonegap应用程序时出现错误"

您是否考虑删除Windows系统自动将您的XML数据添加到utf-8文件中的字节顺序标记字符?

在传递要分析的xml值之前,请尝试删除该字符:

 var cleanedXML = origXML.replace("\ufeff", ""); 

资料来源: http : //www.multiasking.com/blog/xml2js-sax-js-non-whitespace-before-first-tag/