【问题标题】:Getting error while build the VisualStudio Cordova application in release mode在发布模式下构建 VisualStudio Cordova 应用程序时出错
【发布时间】:2019-04-29 11:30:10
【问题描述】:

在发布模式下构建 Visual-studio Cordova 应用程序时出现致命错误。

我正在使用 Visual-studio 2017 和 Cordova 工具集版本 - 6.3.1

1>MSBUILD : cordova-build error : [Fatal Error] :3:214: The value of attribute "name" associated with an element type "item" must not contain the '<' character.
1>MSBUILD : cordova-build error : Could not read D:\Android\Sdk\platform-tools\api\annotations.zip
1>MSBUILD : cordova-build error : java.io.IOException: Could not parse XML from android/accounts/annotations.xml

【问题讨论】:

    标签: android cordova visual-studio-cordova


    【解决方案1】:

    我通过简单地删除Android平台目录解决了这个错误,然后构建,清理项目并再次构建。

    【讨论】:

    • 听起来很愚蠢,但这也对我有用。我尝试了多种方法,所以我不记得cordova clean android 是否足够,或者我是否必须删除 android 平台并重新添加它。
    猜你喜欢
    • 2019-07-29
    • 2016-07-08
    • 2018-11-09
    • 1970-01-01
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多