当我运行cordova run android
时,我看到以下错误:
Failed to install 'ionic-plugin-keyboard':Error: Unmatched closing tag: widget
Line: 37
Column: 9
Char: >
at error (/platforms/android/cordova/node_modules/sax/lib/sax.js:347:8)
at strictFail (/platforms/android/cordova/node_modules/sax/lib/sax.js:364:22)
at closeTag (/platforms/android/cordova/node_modules/sax/lib/sax.js:529:5)
at Object.write (/platforms/android/cordova/node_modules/sax/lib/sax.js:948:29)
at XMLParser.feed (/platforms/android/cordova/node_modules/elementtree/lib/parsers/sax.js:48:15)
at ElementTree.parse (/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:271:10)
at Object.exports.XML (/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:606:13)
at Object.module.exports.parseElementtreeSync (/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:123:38)
at ConfigFile_load [as load] (/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:70:33)
at new ConfigFile (/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:47:10)
有什么线索可以查找错误吗?我检查了config.xml - 它看起来很好。
答案 0 :(得分:1)
所以我现在用最新的ionic2 cli擦除并重新创建了这个项目,它似乎有效。我现在只有一个错误抱怨config.xml,这可以通过删除</widget>