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

Win: Cannot build Android app if project path contains spaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Windows 7 64 bit

      Description

      Create your project in a location that contains space, i.e.
      'C:\Users\natalia.b\my test workspace'

      Try to build Android app.
      You'll get an error:

      ...
      Compiling platform "android" with command "":\Users\natalia.b\my test workspace\m\platforms\android\cordova\build"" (output to follow)...

      module.js:340
      throw err;
      ^
      Error: Cannot find module ':\Users\natalia.b\my'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:901:3

      Error: An error occurred while building the android project.
      module.js:340
      throw err;
      ^
      Error: Cannot find module 'C:\Users\natalia.b\my'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:901:3

      at C:\Users\natalia.b\.zend\cordova\nodejs\node_modules\cordova\src\compile.js:34:23
      at C:\Users\natalia.b\.zend\cordova\nodejs\node_modules\cordova\node_modules\shelljs\shell.js:1707:7
      at ChildProcess.exithandler (child_process.js:641:7)
      at ChildProcess.EventEmitter.emit (events.js:98:17)
      at maybeClose (child_process.js:735:16)
      at Socket.<anonymous> (child_process.js:948:11)
      at Socket.EventEmitter.emit (events.js:95:17)
      at Pipe.close (net.js:466:12)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                csantana Carlos Santana
                Reporter:
                nataliab Natalia Bartol
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: