You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Braden Shepherdson (JIRA)" <ji...@apache.org> on 2013/11/06 16:34:19 UTC

[jira] [Resolved] (CB-4914) Cordova CLI cannot build Android project when the path contains spaces

     [ https://issues.apache.org/jira/browse/CB-4914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson resolved CB-4914.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2.0

This was fixed some time ago in the 3.2 platform scripts for Android. I can't reproduce it with the latest Android scripts.

> Cordova CLI cannot build Android project when the path contains spaces
> ----------------------------------------------------------------------
>
>                 Key: CB-4914
>                 URL: https://issues.apache.org/jira/browse/CB-4914
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CLI
>    Affects Versions: 3.0.0
>         Environment: Platform: Windows 7
> Cordova CLI Version: 3.0.9
>            Reporter: Simon Fisher
>            Assignee: Lorin Beer
>             Fix For: 3.2.0
>
>
> When attempting to use the CLI to compile/build an android project, if the path contains spaces then the command fails.
> Example:
> C:\my path>cordova create HelloWorld com.test.helloworld "HelloWorld"
> (success)
> C:\my path> cd helloworld
> C:\my path\helloworld>cordova platform add android
> (success)
> C:\my path\helloworld>cordova prepare android
> (success)
> C:\my path\helloworld>cordova compile android
> [Error: An error occurred while building the android project. 'C:\my' is not recognized as an internal or external command, operable program or batch file.
> ]
> The same error occurs if I manually run "platforms/android/cordova/build.bat"
> However if I manually run "platforms/android/ant debug" then the build appears to succeed (at least, it gives no errors and generates an .APK file)



--
This message was sent by Atlassian JIRA
(v6.1#6144)