Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6301

Create Cordova platform wp8 or windows8 got error "Non-whitespace before first tag"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.4.0
    • 3.4.0
    • cordova-cli
    • Windows 8.1 Pro(Chinese-Simplified)
      Visual Studio 2013 Ultimate with Update 1(Chinese-Simplified)

    Description

      When I use Command-Line to add platforms like this:
      cordova platform add wp8
      cordova platform add windows8

      The issue occurs like this:
      C:\testproject>cordova platform add windows8
      Checking windows8 requirements...
      Creating windows8 project...
      Creating Cordova Windows 8 Project:
      App Name : testproject
      Namespace : testproject
      Path : C:\testproject\platforms\windows8
      Project created
      [Error: Non-whitespace before first tag.
      Line: 0
      Column: 1
      Char: �]

      I got the same issue when I Add plugin like this:
      cordova plugin add org.apache.cordova.device

      The issue goes to:
      C:\testproject>cordova plugin add org.apache.cordova.device
      Fetching plugin "org.apache.cordova.device" via plugin registry
      Installing org.apache.cordova.device (windows8)
      Error: Non-whitespace before first tag.
      Line: 0
      Column: 1
      Char: �
      at error (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\node_mo
      dules\elementtree\node_modules\sax\lib\sax.js:347:8)
      at strictFail (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\no
      de_modules\elementtree\node_modules\sax\lib\sax.js:364:22)
      at Object.write (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\
      node_modules\elementtree\node_modules\sax\lib\sax.js:603:11)
      at XMLParser.feed (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordov
      a\node_modules\elementtree\lib\parsers\sax.js:48:15)
      at ElementTree.parse (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cor
      dova\node_modules\elementtree\lib\elementtree.js:263:10)
      at Object.exports.XML (C:\Users\steelAir\AppData\Roaming\npm\node_modules\co
      rdova\node_modules\elementtree\lib\elementtree.js:593:13)
      at Object.module.exports.parseElementtreeSync (C:\Users\steelAir\AppData\Roa
      ming\npm\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js:120:3
      8)
      at Object.module.exports.package_name (C:\Users\steelAir\AppData\Roaming\npm
      \node_modules\cordova\node_modules\plugman\src\platforms\windows8.js:35:36)
      at PlatformMunger.generate_plugin_config_munge (C:\Users\steelAir\AppData\Ro
      aming\npm\node_modules\cordova\node_modules\plugman\src\util\config-changes.js:2
      85:54)
      at PlatformMunger.add_plugin_changes (C:\Users\steelAir\AppData\Roaming\npm\
      node_modules\cordova\node_modules\plugman\src\util\config-changes.js:211:29)

      Attachments

        1. QQ截图20140408001056.png
          29 kB
          wei jiang
        2. 11.png
          25 kB
          wei jiang
        3. 未标题-1.png
          59 kB
          wei jiang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              steelair steelair
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified