Skip to content

Cordova 14 build fails when running from a directory with a space in the path #1792

@LiamBennettStream

Description

@LiamBennettStream

Bug Report

Problem

What is expected to happen?

The build with spaces in the path worked fine on cordova-android 13

What does actually happen?

The build with spaces in the path fails on cordova-android 14

Information

This error appears in the console

Checking Java JDK and Android SDK versions
ANDROID_HOME=undefined (recommended setting)
ANDROID_SDK_ROOT=C:\Users\xxxx\AppData\Local\Android\Sdk (DEPRECATED)
Using Android SDK: C:\Users\xxxx\AppData\Local\Android\Sdk
Reading build config file: C:\Users\xxxx\projects\my_app\My App\build.json
Command failed with exit code 1: C:\Users\xxxx\projects\my_app\My App\node_modules\cordova-android\lib\getASPath.bat
'C:\Users\xxxx\projects\my_app\My' is not recognized as an internal or external command,
operable program or batch file.

Command or Code

cordova build android

Environment, Platform, Device

Windows 11

Version information

The only change in the project is going from cordova-android 13 to 14

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions