离子cordova平台添加android错误:意外的关闭标签错误

时间:2018-07-05 09:07:22

标签: cordova ionic3

我对Ionic 3还是陌生的。当我尝试添加平台时,它显示以下错误:

arun@arun-HP-Laptop-15-bs1xx:~/Desktop/myApp$ ionic cordova platform add android
Error: Unexpected close tag
Line: 83
Column: 9
Char: >``
    at error (/usr/lib/node_modules/ionic/node_modules/sax/lib/sax.js:666:10)
    at strictFail (/usr/lib/node_modules/ionic/node_modules/sax/lib/sax.js:692:7)
    at closeTag (/usr/lib/node_modules/ionic/node_modules/sax/lib/sax.js:885:9)
    at SAXParser.write (/usr/lib/node_modules/ionic/node_modules/sax/lib/sax.js:1436:13)
    at XMLParser.feed (/usr/lib/node_modules/ionic/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/usr/lib/node_modules/ionic/node_modules/elementtree/lib/elementtree.js:271:10)
    at Object.parse (/usr/lib/node_modules/ionic/node_modules/elementtree/lib/elementtree.js:584:8)
    at Function.<anonymous> (/usr/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/cordova/config.js:35:28)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/ionic/node_modules/tslib/tslib.js:104:62)

1 个答案:

答案 0 :(得分:1)

检查您的config.xml,不要忘记在每个标签的末尾添加反斜杠。